From 7699ddd95c0efba644d6127eaacc6a1356ef010f Mon Sep 17 00:00:00 2001 From: Jordan Harvey Date: Tue, 2 Jul 2024 18:59:08 +0000 Subject: [PATCH] 2024.6.2 fix regression setting up for the first time --- custom_components/fuel_prices/sensor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/fuel_prices/sensor.py b/custom_components/fuel_prices/sensor.py index 98d6781..9e7c092 100644 --- a/custom_components/fuel_prices/sensor.py +++ b/custom_components/fuel_prices/sensor.py @@ -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])