Skip to content

Commit

Permalink
chore: more verbose logging for energy sensor creation
Browse files Browse the repository at this point in the history
  • Loading branch information
bramstroker committed Apr 7, 2024
1 parent 11eae22 commit 53a4928
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion custom_components/powercalc/sensors/energy.py
Expand Up @@ -122,7 +122,13 @@ async def create_energy_sensor(

unit_prefix = get_unit_prefix(hass, sensor_config, power_sensor)

_LOGGER.debug("Creating energy sensor: %s", name)
_LOGGER.debug(
"Creating energy sensor (entity_id=%s, source_entity=%s, unit_prefix=%s)",
entity_id,
power_sensor.entity_id,
unit_prefix,
)

return VirtualEnergySensor(
source_entity=power_sensor.entity_id,
unique_id=unique_id,
Expand Down

0 comments on commit 53a4928

Please sign in to comment.