Fix updating insteon modem configuration while disconnected (#121918)

#121917 Fix updating insteon modem configuration while disconnected
This commit is contained in:
UltimateGG 2024-09-03 09:31:48 -05:00 committed by Bram Kragten
parent 3af11fb2b1
commit c7d1ad27f0

View File

@ -211,7 +211,7 @@ async def websocket_update_modem_config(
"""Get the schema for the modem configuration."""
config = msg["config"]
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):
connection.send_error(