From 973926cc114f6b2f53a8cb12db1194aa5bf023de Mon Sep 17 00:00:00 2001 From: Bram Date: Sat, 8 Jul 2023 21:53:28 +0200 Subject: [PATCH] Cleanup --- custom_components/powercalc/sensor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/powercalc/sensor.py b/custom_components/powercalc/sensor.py index 7a3b81c6d..7139344f3 100644 --- a/custom_components/powercalc/sensor.py +++ b/custom_components/powercalc/sensor.py @@ -604,7 +604,7 @@ async def create_sensors( # Setup power sensors for multiple appliances in one config entry sensor_configs = {} entities_to_add = EntitiesBucket() - for entity_config in config.get(CONF_ENTITIES) or []: + for entity_config in config.get(CONF_ENTITIES, []): # When there are nested entities, combine these with the current entities, recursively if CONF_ENTITIES in entity_config or CONF_CREATE_GROUP in entity_config: child_entities = await create_sensors(hass, entity_config, context=context)