mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-11-09 10:59:43 +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.
|
# 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():
|
if not connected and not await self.sys_homeassistant.api.check_api_state():
|
||||||
# No core access, don't try.
|
# No core access, don't try.
|
||||||
|
_LOGGER.debug(
|
||||||
|
"Home Assistant API is not accessible. Not sending WS message: %s",
|
||||||
|
message,
|
||||||
|
)
|
||||||
return False
|
return False
|
||||||
|
|
||||||
if not self._client:
|
if not self._client:
|
||||||
|
|||||||
Reference in New Issue
Block a user