mirror of
https://github.com/home-assistant/core.git
synced 2025-07-27 15:17:35 +00:00
Fix updating insteon modem configuration while disconnected (#121918)
#121917 Fix updating insteon modem configuration while disconnected
This commit is contained in:
parent
3af11fb2b1
commit
c7d1ad27f0
@ -211,7 +211,7 @@ async def websocket_update_modem_config(
|
|||||||
"""Get the schema for the modem configuration."""
|
"""Get the schema for the modem configuration."""
|
||||||
config = msg["config"]
|
config = msg["config"]
|
||||||
config_entry = get_insteon_config_entry(hass)
|
config_entry = get_insteon_config_entry(hass)
|
||||||
is_connected = devices.modem.connected
|
is_connected = devices.modem is not None and devices.modem.connected
|
||||||
|
|
||||||
if not await _async_connect(**config):
|
if not await _async_connect(**config):
|
||||||
connection.send_error(
|
connection.send_error(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user