Added
- Battery pack sensors: Exposes battery voltage in volts, signed battery current in amperes, calculated battery power in watts, and battery temperature in degrees Celsius when supported by the device TSL. Battery power is positive while charging and negative while discharging.
Changed
- Battery voltage defaults to two decimal places and battery power defaults to one decimal place in Home Assistant displays.
- Upgraded to unofficial-pecron-api v0.4.1 (adds
eco_onoff_usas an alternate property code for Eco Silent Mode on some device models) - Tested and developed against Home Assistant 2026.7.4 (up from 2024.1.0); raised the declared minimum supported version to 2024.11.0
DataUpdateCoordinatornow passesconfig_entryexplicitly instead of relying on the deprecated ContextVar lookup, which Home Assistant 2026.8 turns into a hard failure
Fixed
- Read battery voltage, current, and temperature from the nested battery packet exposed by the Pecron API and discover all three sensors through its
host_packet_data_jdbTSL property. - Crash on setup when no devices are usable or initial fetch fails: replaced all uses of the removed
hass.components.persistent_notificationaccessor with the currenthomeassistant.components.persistent_notification.async_create(hass, ...)API. Previously, any code path that tried to show a persistent notification (no devices found, initial connection failure, invalid/read-only property, failed switch/select control) raisedAttributeError: 'HomeAssistant' object has no attribute 'components'on modern Home Assistant, aborting integration setup entirely instead of surfacing the intended message (#8)