Skip to content

Commit

Permalink
2024.6.2
Browse files Browse the repository at this point in the history
fix regression setting up for the first time
  • Loading branch information
pantherale0 committed Jul 2, 2024
1 parent 15b2396 commit 7699ddd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/fuel_prices/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ async def async_setup_entry(
)
)
found_entities.append(station["id"])
if area[CONF_CHEAPEST_SENSORS]:
if area.get(CONF_CHEAPEST_SENSORS, False):
_LOGGER.debug("Registering %s cheapest entities for area %s",
area[CONF_CHEAPEST_SENSORS_COUNT],
area[CONF_NAME])
Expand Down

0 comments on commit 7699ddd

Please sign in to comment.