Skip to content

Commit

Permalink
Fix naming and docstring in yale_smart_alarm select (home-assistant#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
gjohansson-ST authored Sep 30, 2024
1 parent 1080580 commit fdd9fca
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions homeassistant/components/yale_smart_alarm/select.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,24 +18,24 @@
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()
Expand Down

0 comments on commit fdd9fca

Please sign in to comment.