From 24ea865553461fb73aa977367a9a3a93eed27043 Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Wed, 28 Jun 2023 14:37:13 +0200 Subject: [PATCH] Fix a couple of typos (#95441) --- homeassistant/components/button/__init__.py | 2 +- homeassistant/components/number/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/button/__init__.py b/homeassistant/components/button/__init__.py index 5dd827053a2..0e2790a2e85 100644 --- a/homeassistant/components/button/__init__.py +++ b/homeassistant/components/button/__init__.py @@ -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 diff --git a/homeassistant/components/number/__init__.py b/homeassistant/components/number/__init__.py index 10c296c7a7a..24c44b901a1 100644 --- a/homeassistant/components/number/__init__.py +++ b/homeassistant/components/number/__init__.py @@ -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