Skip to content

Commit 2667a40

Browse files
davidrapanthecode
andauthored
Remove Shelly number name removal (home-assistant#157069)
Signed-off-by: David Rapan <[email protected]> Co-authored-by: Shay Levy <[email protected]>
1 parent 08baa99 commit 2667a40

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

homeassistant/components/shelly/number.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,6 @@ def __init__(
108108
if description.mode_fn is not None:
109109
self._attr_mode = description.mode_fn(coordinator.device.config[key])
110110

111-
if hasattr(self, "_attr_name") and description.role != ROLE_GENERIC:
112-
delattr(self, "_attr_name")
113-
114111
@property
115112
def native_value(self) -> float | None:
116113
"""Return value of number."""
@@ -411,9 +408,6 @@ def __init__(
411408
self.restored_data: NumberExtraStoredData | None = None
412409
super().__init__(coordinator, block, attribute, description, entry)
413410

414-
if hasattr(self, "_attr_name"):
415-
delattr(self, "_attr_name")
416-
417411
async def async_added_to_hass(self) -> None:
418412
"""Handle entity which will be added."""
419413
await super().async_added_to_hass()

0 commit comments

Comments
 (0)