Skip to content

v1.1.1

Choose a tag to compare

@martinarva martinarva released this 01 Apr 05:31

Bug Fix

  • Fix PowerCostSensor fallback device assignment when source has no device (#218)

    When the source power sensor had no device (e.g. template sensors), only the RealTimeCostSensor was correctly linked to the fallback "Dynamic Energy Cost" device. All interval cost sensors (15-min, daily, hourly, weekly, monthly, yearly, manual) were left ungrouped.

    Root cause: PowerCostSensor delegated its device_info to RealTimeCostSensor, creating a timing dependency where HA could mutate the RealTimeCostSensor's device_entry during entity registration.

    Fix: Each sensor class now evaluates its own device_entry independently via a shared _fallback_device_info() helper.

After updating

Restart Home Assistant or reload the integration. If sensors still appear ungrouped, remove and re-add the affected entry.