Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
bramstroker committed Jul 8, 2023
1 parent 22cc190 commit 973926c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/powercalc/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 973926c

Please sign in to comment.