Remove powerwall attributes no longer present in latest firmware (#36667)
This commit is contained in:
parent
dd6d18102f
commit
2d5faaf3f8
3 changed files with 0 additions and 18 deletions
|
@ -11,9 +11,6 @@ from homeassistant.components.binary_sensor import (
|
|||
from homeassistant.const import DEVICE_CLASS_POWER
|
||||
|
||||
from .const import (
|
||||
ATTR_GRID_CODE,
|
||||
ATTR_NOMINAL_SYSTEM_POWER,
|
||||
ATTR_REGION,
|
||||
DOMAIN,
|
||||
POWERWALL_API_DEVICE_TYPE,
|
||||
POWERWALL_API_GRID_STATUS,
|
||||
|
@ -79,15 +76,6 @@ class PowerWallRunningSensor(PowerWallEntity, BinarySensorEntity):
|
|||
"""Get the powerwall running state."""
|
||||
return self._coordinator.data[POWERWALL_API_SITEMASTER].running
|
||||
|
||||
@property
|
||||
def device_state_attributes(self):
|
||||
"""Return the device specific state attributes."""
|
||||
return {
|
||||
ATTR_REGION: self._site_info.region,
|
||||
ATTR_GRID_CODE: self._site_info.grid_code,
|
||||
ATTR_NOMINAL_SYSTEM_POWER: self._site_info.nominal_system_power_kW,
|
||||
}
|
||||
|
||||
|
||||
class PowerWallConnectedSensor(PowerWallEntity, BinarySensorEntity):
|
||||
"""Representation of an Powerwall connected sensor."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue