Fix powerwall display of actual remaining battery, instead of reserved capacity (#142391)

This commit is contained in:
Stefano Angeleri 2025-04-14 12:59:28 +02:00 committed by GitHub
parent 1892c8fa62
commit c8972a2234
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 0 additions and 2 deletions

View File

@ -297,7 +297,6 @@ class PowerWallBackupReserveSensor(PowerWallEntity, SensorEntity):
_attr_translation_key = "backup_reserve"
_attr_state_class = SensorStateClass.MEASUREMENT
_attr_native_unit_of_measurement = PERCENTAGE
_attr_device_class = SensorDeviceClass.BATTERY
@property
def unique_id(self) -> str:

View File

@ -118,7 +118,6 @@ async def test_sensors(hass: HomeAssistant, device_registry: dr.DeviceRegistry)
expected_attributes = {
"unit_of_measurement": PERCENTAGE,
"friendly_name": "MySite Backup reserve",
"device_class": "battery",
}
# Only test for a subset of attributes in case
# HA changes the implementation and a new one appears