mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-11-10 11:29:51 +00:00
Unify Supervisor event message functions (#5831)
* Unify Supervisor event message functions Unify functions which send WebSocket messages of type "supervisor/event". This deduplicates code and hopefully avoids further diversication in the future. While at it, remove unused HomeAssistantWSNotSupported exception. It seems the only place this exception is used got removed in #3317. * Test message delivery during shutdown states
This commit is contained in:
@@ -84,10 +84,6 @@ class HomeAssistantWSError(HomeAssistantAPIError):
|
||||
"""Home Assistant websocket error."""
|
||||
|
||||
|
||||
class HomeAssistantWSNotSupported(HomeAssistantWSError):
|
||||
"""Raise when WebSockets are not supported."""
|
||||
|
||||
|
||||
class HomeAssistantWSConnectionError(HomeAssistantWSError):
|
||||
"""Raise when the WebSocket connection has an error."""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user