From f9208b69a79ec4b4a9d4bd993780af3fbc612795 Mon Sep 17 00:00:00 2001 From: Jordan Harvey Date: Thu, 20 Jun 2024 20:11:29 +0000 Subject: [PATCH] fix #14 --- 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 afbb03a..18dabc9 100644 --- a/custom_components/fuel_prices/sensor.py +++ b/custom_components/fuel_prices/sensor.py @@ -26,7 +26,7 @@ async def async_setup_entry( ) -> None: """Integration platform creation.""" cooridinator: FuelPricesCoordinator = hass.data[DOMAIN][entry.entry_id] - areas = entry.data[CONF_AREAS] + areas = entry.options.get(CONF_AREAS, entry.data.get(CONF_AREAS, [])) entities = [] found_entities = [] state_value = entry.options.get(