diff --git a/homeassistant/components/russound_rio/media_player.py b/homeassistant/components/russound_rio/media_player.py index 299a6fb2cea..02467731ec3 100644 --- a/homeassistant/components/russound_rio/media_player.py +++ b/homeassistant/components/russound_rio/media_player.py @@ -3,6 +3,7 @@ from __future__ import annotations import logging +from typing import TYPE_CHECKING from aiorussound import Controller from aiorussound.const import FeatureFlag @@ -157,6 +158,8 @@ class RussoundZoneDevice(RussoundBaseEntity, MediaPlayerEntity): @property def source_list(self) -> list[str]: """Return a list of available input sources.""" + if TYPE_CHECKING: + assert self._client.rio_version available_sources = ( [ source