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 GitHub
parent d827c53a85
commit 2fa3b9070c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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(