v1.1.1
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:
PowerCostSensordelegated itsdevice_infotoRealTimeCostSensor, creating a timing dependency where HA could mutate the RealTimeCostSensor'sdevice_entryduring entity registration.Fix: Each sensor class now evaluates its own
device_entryindependently 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.