Skip to content

Commit

Permalink
Fix bug in entry_updated
Browse files Browse the repository at this point in the history
  • Loading branch information
pnbruckner committed Apr 3, 2024
1 parent b395277 commit 215d1ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/sun2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ async def entry_updated(hass: HomeAssistant, entry: ConfigEntry) -> None:
config_data = sun2_data(hass).config_data[entry.entry_id]
if (
entry.title == config_data.title
and entry.options.get(CONF_BINARY_SENSORS, []) != config_data.binary_sensors
and entry.options.get(CONF_BINARY_SENSORS, []) == config_data.binary_sensors
and entry.options.get(CONF_SENSORS, []) == config_data.sensors
):
loc_data = get_loc_data(entry.options)
Expand Down

0 comments on commit 215d1ba

Please sign in to comment.