mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-11-17 15:00:17 +00:00
Initial WS support (#2439)
* Initial WS support * test * Update frontend to fc7c4af2 * Fix issue with closing states * log error * make data optional * limit stopping states * Move wrappers to HomeAssistantWebSocket * use info * Use call_soon * Use lookuptable for WS commands * Fix tests
This commit is contained in:
@@ -39,6 +39,14 @@ class HomeAssistantAuthError(HomeAssistantAPIError):
|
||||
"""Home Assistant Auth API exception."""
|
||||
|
||||
|
||||
class HomeAssistantWSError(HomeAssistantAPIError):
|
||||
"""Home Assistant websocket error."""
|
||||
|
||||
|
||||
class HomeAssistantWSNotSupported(HomeAssistantWSError):
|
||||
"""Raise when WebSockets are not supported."""
|
||||
|
||||
|
||||
class HomeAssistantJobError(HomeAssistantError, JobException):
|
||||
"""Raise on Home Assistant job error."""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user