mirror of
https://github.com/home-assistant/core.git
synced 2025-07-14 16:57:10 +00:00
Prevent zwave from firing event at shutdown (#3987)
This commit is contained in:
parent
57777ef79a
commit
02afc98668
@ -430,6 +430,7 @@ def setup(hass, config):
|
|||||||
"""Stop Z-Wave network."""
|
"""Stop Z-Wave network."""
|
||||||
_LOGGER.info("Stopping ZWave network.")
|
_LOGGER.info("Stopping ZWave network.")
|
||||||
NETWORK.stop()
|
NETWORK.stop()
|
||||||
|
if hass.state == 'RUNNING':
|
||||||
hass.bus.fire(const.EVENT_NETWORK_STOP)
|
hass.bus.fire(const.EVENT_NETWORK_STOP)
|
||||||
|
|
||||||
def rename_node(service):
|
def rename_node(service):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user