mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-11-08 10:29:30 +00:00
Log rejected WebSocket messages to Home Assistant Core
This commit is contained in:
@@ -225,6 +225,10 @@ class HomeAssistantWebSocket(CoreSysAttributes):
|
||||
# since it makes a new socket connection and we already have one.
|
||||
if not connected and not await self.sys_homeassistant.api.check_api_state():
|
||||
# No core access, don't try.
|
||||
_LOGGER.debug(
|
||||
"Home Assistant API is not accessible. Not sending WS message: %s",
|
||||
message,
|
||||
)
|
||||
return False
|
||||
|
||||
if not self._client:
|
||||
|
||||
Reference in New Issue
Block a user