mirror of
https://github.com/home-assistant/core.git
synced 2025-04-25 09:47:52 +00:00
Fix a couple of typos (#95441)
This commit is contained in:
parent
0856121046
commit
24ea865553
@ -92,7 +92,7 @@ class ButtonEntity(RestoreEntity):
|
|||||||
def _default_to_device_class_name(self) -> bool:
|
def _default_to_device_class_name(self) -> bool:
|
||||||
"""Return True if an unnamed entity should be named by its device class.
|
"""Return True if an unnamed entity should be named by its device class.
|
||||||
|
|
||||||
For sensors this is True if the entity has a device class.
|
For buttons this is True if the entity has a device class.
|
||||||
"""
|
"""
|
||||||
return self.device_class is not None
|
return self.device_class is not None
|
||||||
|
|
||||||
|
@ -228,7 +228,7 @@ class NumberEntity(Entity):
|
|||||||
def _default_to_device_class_name(self) -> bool:
|
def _default_to_device_class_name(self) -> bool:
|
||||||
"""Return True if an unnamed entity should be named by its device class.
|
"""Return True if an unnamed entity should be named by its device class.
|
||||||
|
|
||||||
For sensors this is True if the entity has a device class.
|
For numbers this is True if the entity has a device class.
|
||||||
"""
|
"""
|
||||||
return self.device_class is not None
|
return self.device_class is not None
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user