mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 21:57:51 +00:00
Remove unused attributes in EDL21 integration (#91922)
This commit is contained in:
parent
48546c77b5
commit
b56f0ad668
@ -413,12 +413,6 @@ class EDL21Entity(SensorEntity):
|
|||||||
self._telegram = telegram
|
self._telegram = telegram
|
||||||
self._min_time = MIN_TIME_BETWEEN_UPDATES
|
self._min_time = MIN_TIME_BETWEEN_UPDATES
|
||||||
self._last_update = utcnow()
|
self._last_update = utcnow()
|
||||||
self._state_attrs = {
|
|
||||||
"status": "status",
|
|
||||||
"valTime": "val_time",
|
|
||||||
"scaler": "scaler",
|
|
||||||
"valueSignature": "value_signature",
|
|
||||||
}
|
|
||||||
self._async_remove_dispatcher = None
|
self._async_remove_dispatcher = None
|
||||||
self.entity_description = entity_description
|
self.entity_description = entity_description
|
||||||
self._attr_unique_id = f"{electricity_id}_{obis}"
|
self._attr_unique_id = f"{electricity_id}_{obis}"
|
||||||
@ -462,15 +456,6 @@ class EDL21Entity(SensorEntity):
|
|||||||
"""Return the value of the last received telegram."""
|
"""Return the value of the last received telegram."""
|
||||||
return self._telegram.get("value")
|
return self._telegram.get("value")
|
||||||
|
|
||||||
@property
|
|
||||||
def extra_state_attributes(self) -> Mapping[str, Any]:
|
|
||||||
"""Enumerate supported attributes."""
|
|
||||||
return {
|
|
||||||
self._state_attrs[k]: v
|
|
||||||
for k, v in self._telegram.items()
|
|
||||||
if k in self._state_attrs
|
|
||||||
}
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def native_unit_of_measurement(self) -> str | None:
|
def native_unit_of_measurement(self) -> str | None:
|
||||||
"""Return the unit of measurement."""
|
"""Return the unit of measurement."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user