This commit is contained in:
Paulus Schoutsen committed 2019-07-31 12:25:30 -07:00
1 parent da05dfe708
commit 4de97abc3a
2676 files changed
+163166 -140084

No files matched your search

@@ -11,20 +11,16 @@ from .const import DATA_NETWORK
_LOGGER = logging.getLogger(__name__)
TYPE = 'type'
ID = 'id'
TYPE = "type"
ID = "id"
@websocket_api.require_admin
@websocket_api.websocket_command({
vol.Required(TYPE): 'zwave/network_status'
})
@websocket_api.websocket_command({vol.Required(TYPE): "zwave/network_status"})
def websocket_network_status(hass, connection, msg):
"""Get Z-Wave network status."""
network = hass.data[DATA_NETWORK]
connection.send_result(msg[ID], {
'state': network.state,
})
connection.send_result(msg[ID], {"state": network.state})
@callback