Skip to content

Commit

Permalink
Fix errors with group include option (#1599)
Browse files Browse the repository at this point in the history
  • Loading branch information
bramstroker committed Apr 1, 2023
1 parent 8a3268c commit b079397
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions custom_components/powercalc/sensor.py
Expand Up @@ -651,6 +651,9 @@ async def is_auto_configurable(
)
if not power_profile:
return False
source_entity = await create_source_entity(entity_entry.entity_id, hass)
if not power_profile.is_entity_domain_supported(source_entity):
return False
if power_profile.has_sub_profiles and power_profile.sub_profile:
return True
return not power_profile.is_additional_configuration_required
Expand Down

0 comments on commit b079397

Please sign in to comment.