Adds Home Assistant support for Xaibatsu

This commit is contained in:
2025-06-19 01:02:51 -07:00
parent c5f295555b
commit 7e10083671
8 changed files with 445 additions and 2 deletions
@@ -53,4 +53,10 @@ extension URL
return URL(string: absoluteString)
}
public func websocket() -> URL {
guard var components = URLComponents(url: self, resolvingAgainstBaseURL: false) else { fatalError() }
components.scheme = components.scheme == "https" ? "wss" : "ws"
return components.url!
}
}