mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Fix modbus state not dumped on restart (#131319)
* Fix modbus state not dumped on restart * Update test_init.py * Set event back to stop * Update test_init.py --------- Co-authored-by: VandeurenGlenn <8685280+VandeurenGlenn@users.noreply.github.com>
This commit is contained in:
parent
4326689f52
commit
8eb52edabf
@ -158,8 +158,6 @@ async def async_modbus_setup(
|
|||||||
|
|
||||||
async def async_stop_modbus(event: Event) -> None:
|
async def async_stop_modbus(event: Event) -> None:
|
||||||
"""Stop Modbus service."""
|
"""Stop Modbus service."""
|
||||||
|
|
||||||
async_dispatcher_send(hass, SIGNAL_STOP_ENTITY)
|
|
||||||
for client in hub_collect.values():
|
for client in hub_collect.values():
|
||||||
await client.async_close()
|
await client.async_close()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user