Skip to content

Commit

Permalink
Fix deprecation warning #555
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexxIT committed Oct 14, 2024
1 parent c29a543 commit c868f29
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/yandex_station/core/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from aiohttp import ClientSession, web
from homeassistant.components import frontend
from homeassistant.components.http import HomeAssistantView
from homeassistant.components.media_player import SUPPORT_PLAY_MEDIA
from homeassistant.components.media_player import MediaPlayerEntityFeature
from homeassistant.core import HomeAssistant, callback
from homeassistant.helpers import network
from homeassistant.helpers.aiohttp_client import async_get_clientsession
Expand Down Expand Up @@ -394,7 +394,7 @@ def get_media_players(hass: HomeAssistant, speaker_id: str) -> List[dict]:
for entity in ec.entities
if (
entity.platform.platform_name != DOMAIN
and entity.supported_features & SUPPORT_PLAY_MEDIA
and entity.supported_features & MediaPlayerEntityFeature.PLAY_MEDIA
)
]
except Exception as e:
Expand Down

0 comments on commit c868f29

Please sign in to comment.