Fix websocket connection sensor (#22923)

* Fix for #22890

* Singleton count
This commit is contained in:
Penny Wood authored and Paulus Schoutsen committed 2019-04-13 10:48:40 -07:00
1 parent 479511ee42
commit 2527731865
3 files changed
+22 -16

No files matched your search

@@ -24,3 +24,6 @@ CANCELLATION_ERRORS = (asyncio.CancelledError, futures.CancelledError)
# Event types
SIGNAL_WEBSOCKET_CONNECTED = 'websocket_connected'
SIGNAL_WEBSOCKET_DISCONNECTED = 'websocket_disconnected'
# Data used to store the current connection list
DATA_CONNECTIONS = DOMAIN + '.connections'