Fix a couple of typos (#95441)
parent
0856121046
commit
24ea865553
|
@ -92,7 +92,7 @@ class ButtonEntity(RestoreEntity):
|
|||
def _default_to_device_class_name(self) -> bool:
|
||||
"""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
|
||||
|
||||
|
|
|
@ -228,7 +228,7 @@ class NumberEntity(Entity):
|
|||
def _default_to_device_class_name(self) -> bool:
|
||||
"""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
|
||||
|
||||
|
|
Loading…
Reference in New Issue