mirror of
https://github.com/home-assistant/core.git
synced 2025-07-26 06:37:52 +00:00
parent
592e99947d
commit
3338f5c9b4
@ -200,7 +200,8 @@ class WebSocketHandler:
|
|||||||
else:
|
else:
|
||||||
self._logger.warning("Disconnected: %s", disconnect_warn)
|
self._logger.warning("Disconnected: %s", disconnect_warn)
|
||||||
|
|
||||||
self.hass.data[DATA_CONNECTIONS] -= 1
|
if connection is not None:
|
||||||
|
self.hass.data[DATA_CONNECTIONS] -= 1
|
||||||
self.hass.helpers.dispatcher.async_dispatcher_send(
|
self.hass.helpers.dispatcher.async_dispatcher_send(
|
||||||
SIGNAL_WEBSOCKET_DISCONNECTED)
|
SIGNAL_WEBSOCKET_DISCONNECTED)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user