Skip to content

Commit

Permalink
Fix updating insteon modem configuration while disconnected (home-ass…
Browse files Browse the repository at this point in the history
…istant#121918)

home-assistant#121917 Fix updating insteon modem configuration while disconnected
  • Loading branch information
UltimateGG authored and bramkragten committed Sep 3, 2024
1 parent 3af11fb commit c7d1ad2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion homeassistant/components/insteon/api/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit c7d1ad2

Please sign in to comment.