From fdd9fca5b36c422b4d968c62caa074bd777adb57 Mon Sep 17 00:00:00 2001 From: G Johansson Date: Mon, 30 Sep 2024 21:22:55 +0200 Subject: [PATCH] Fix naming and docstring in yale_smart_alarm select (#127141) --- homeassistant/components/yale_smart_alarm/select.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/homeassistant/components/yale_smart_alarm/select.py b/homeassistant/components/yale_smart_alarm/select.py index 11b5a47eb89..55b56dd8e54 100644 --- a/homeassistant/components/yale_smart_alarm/select.py +++ b/homeassistant/components/yale_smart_alarm/select.py @@ -18,24 +18,24 @@ VOLUME_OPTIONS = {value.name.lower(): str(value.value) for value in YaleLockVolu async def async_setup_entry( hass: HomeAssistant, entry: YaleConfigEntry, async_add_entities: AddEntitiesCallback ) -> None: - """Set up the Yale switch entry.""" + """Set up the Yale select entry.""" coordinator = entry.runtime_data async_add_entities( - YaleAutolockSwitch(coordinator, lock) + YaleLockVolumeSelect(coordinator, lock) for lock in coordinator.locks if lock.supports_lock_config() ) -class YaleAutolockSwitch(YaleLockEntity, SelectEntity): - """Representation of a Yale autolock switch.""" +class YaleLockVolumeSelect(YaleLockEntity, SelectEntity): + """Representation of a Yale lock volume select.""" _attr_translation_key = "volume" def __init__(self, coordinator: YaleDataUpdateCoordinator, lock: YaleLock) -> None: - """Initialize the Yale Autolock Switch.""" + """Initialize the Yale volume select.""" super().__init__(coordinator, lock) self._attr_unique_id = f"{lock.sid()}-volume" self._attr_current_option = self.lock_data.volume().name.lower()