Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions custom_components/stateful_scenes/select.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def __init__(self, scene: Scene, hub: Hub | None) -> None:
None # Variable to store the off scene entity ID
)

def _get_available_off_scenes(self) -> list[tuple[str, str]]:
async def _async_get_available_off_scenes(self) -> list[tuple[str, str]]:
"""Get list of available scenes with friendly names."""
scenes: list[tuple[str, str]] = []

Expand Down Expand Up @@ -131,7 +131,7 @@ def extra_state_attributes(self) -> dict[str, Any]:
}

@callback
def async_update_restore_state(
async def async_update_restore_state(
self, event: Event[EventStateChangedData] | None = None
) -> None:
"""Sync with the restore state toggle."""
Expand All @@ -146,7 +146,7 @@ def async_update_restore_state(
self._restore_on_deactivate_state,
)

scenes = self._get_available_off_scenes()
scenes = await self._async_get_available_off_scenes()
self._entity_id_map = {
friendly_name: entity_id for entity_id, friendly_name in scenes
}
Expand Down