mirror of
https://github.com/home-assistant/core.git
synced 2025-08-12 09:05:15 +02:00
Fix device_class.capitalize() in Point (#101440)
This commit is contained in:
committed by
Franck Nijhof
parent
f8c7d502df
commit
a506ba94d1
@@ -277,7 +277,8 @@ class MinutPointEntity(Entity):
|
|||||||
sw_version=device["firmware"]["installed"],
|
sw_version=device["firmware"]["installed"],
|
||||||
via_device=(DOMAIN, device["home"]),
|
via_device=(DOMAIN, device["home"]),
|
||||||
)
|
)
|
||||||
self._attr_name = f"{self._name} {device_class.capitalize()}"
|
if device_class:
|
||||||
|
self._attr_name = f"{self._name} {device_class.capitalize()}"
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
"""Return string representation of device."""
|
"""Return string representation of device."""
|
||||||
|
Reference in New Issue
Block a user