mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Fix human readable huawei_lte sensor names (#104672)
Regression from 7c85d841338e328b73cd2d8d3e3a701bbabf4c31, #98631
This commit is contained in:
parent
2c196baa7a
commit
21d842cb58
@ -718,10 +718,6 @@ class HuaweiLteSensor(HuaweiLteBaseEntityWithDevice, SensorEntity):
|
||||
_unit: str | None = field(default=None, init=False)
|
||||
_last_reset: datetime | None = field(default=None, init=False)
|
||||
|
||||
def __post_init__(self) -> None:
|
||||
"""Initialize remaining attributes."""
|
||||
self._attr_name = self.entity_description.name or self.item
|
||||
|
||||
async def async_added_to_hass(self) -> None:
|
||||
"""Subscribe to needed data on add."""
|
||||
await super().async_added_to_hass()
|
||||
|
Loading…
x
Reference in New Issue
Block a user