mirror of
https://github.com/home-assistant/core.git
synced 2025-08-10 16:15:08 +02:00
Fix human readable huawei_lte sensor names (#104672)
Regression from 7c85d84133
, #98631
This commit is contained in:
@@ -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()
|
||||
|
Reference in New Issue
Block a user