mirror of
https://github.com/home-assistant/core.git
synced 2025-07-14 08:47:10 +00:00
Fix device_class.capitalize() in Point (#101440)
This commit is contained in:
parent
b2cad2370b
commit
d654c4bc1e
@ -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."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user