Fix a couple of typos (#95441)

pull/95450/head
Erik Montnemery 2023-06-28 14:37:13 +02:00 committed by GitHub
parent 0856121046
commit 24ea865553
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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