You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
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_us as 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
DataUpdateCoordinator now passes config_entry explicitly 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_jdb TSL property.
Crash on setup when no devices are usable or initial fetch fails: replaced all uses of the removed hass.components.persistent_notification accessor with the current homeassistant.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) raised AttributeError: 'HomeAssistant' object has no attribute 'components' on modern Home Assistant, aborting integration setup entirely instead of surfacing the intended message (#8)