mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
parent
592e99947d
commit
3338f5c9b4
@ -200,7 +200,8 @@ class WebSocketHandler:
|
||||
else:
|
||||
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(
|
||||
SIGNAL_WEBSOCKET_DISCONNECTED)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user