Update deprecated const usage in alexa integration (#143741)

This commit is contained in:
Sanjay Govind 2025-04-28 00:33:16 +12:00 committed by GitHub
parent 31fb199670
commit f94af84f2a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1709,9 +1709,7 @@ async def async_api_changechannel(
data: dict[str, Any] = { data: dict[str, Any] = {
ATTR_ENTITY_ID: entity.entity_id, ATTR_ENTITY_ID: entity.entity_id,
media_player.const.ATTR_MEDIA_CONTENT_ID: channel, media_player.const.ATTR_MEDIA_CONTENT_ID: channel,
media_player.const.ATTR_MEDIA_CONTENT_TYPE: ( media_player.const.ATTR_MEDIA_CONTENT_TYPE: media_player.MediaType.CHANNEL,
media_player.const.MEDIA_TYPE_CHANNEL
),
} }
await hass.services.async_call( await hass.services.async_call(