AlexxIT / YandexStation

Управление Яндекс.Станцией и другими устройствами умного дома с Алисой из Home Assistant
https://t.me/AlexxIT_SmartHome
MIT License
1.34k stars 124 forks source link

Предупреждение после обновления до НА Core 2024.1.0 #428

Closed Doktor2003 closed 8 months ago

Doktor2003 commented 9 months ago

После обновления НА до Core 2024.1.0 в журнале сервера появилась следующая ошибка: Entity media_player.yandex_station_x11hdm100vwk (<class 'custom_components.yandex_station.media_player.YandexStation'>) is using deprecated supported features values which will be removed in HA Core 2025.1. Instead it should use <MediaPlayerEntityFeature.PAUSE|VOLUME_SET|VOLUME_MUTE|PREVIOUS_TRACK|NEXT_TRACK|TURN_ON|TURN_OFF|PLAY_MEDIA|VOLUME_STEP|PLAY|SELECT_SOUND_MODE|BROWSE_MEDIA: 214973>

AlekseiPun commented 8 months ago

Аналогичная проблема, и ещё не работает воспроизведение мультимедиа и отправка команд на колонку из HA

garry0garry commented 8 months ago

@Doktor2003 , это не ошибка, а предупреждение.

В копилку.

Logger: homeassistant.helpers.entity
Source: helpers/entity.py:1524
First occurred: 08:27:27 (2 occurrences)
Last logged: 08:27:27

Entity media_player.yandex_station_m10fyv1002159k (<class 'custom_components.yandex_station.media_player.YandexStation'>) is using deprecated supported features values which will be removed in HA Core 2025.1. Instead it should use <MediaPlayerEntityFeature.PAUSE|VOLUME_SET|VOLUME_MUTE|PREVIOUS_TRACK|NEXT_TRACK|TURN_ON|TURN_OFF|PLAY_MEDIA|VOLUME_STEP|PLAY|SELECT_SOUND_MODE|BROWSE_MEDIA: 214973>, please create a bug report at https://github.com/AlexxIT/YandexStation/issues and reference https://developers.home-assistant.io/blog/2023/12/28/support-feature-magic-numbers-deprecation
Entity media_player.yandex_station_m10xjp200aep4k (<class 'custom_components.yandex_station.media_player.YandexStation'>) is using deprecated supported features values which will be removed in HA Core 2025.1. Instead it should use <MediaPlayerEntityFeature.PAUSE|VOLUME_SET|VOLUME_MUTE|PREVIOUS_TRACK|NEXT_TRACK|TURN_ON|TURN_OFF|PLAY_MEDIA|VOLUME_STEP|PLAY|SELECT_SOUND_MODE|BROWSE_MEDIA: 214973>, please create a bug report at https://github.com/AlexxIT/YandexStation/issues and reference https://developers.home-assistant.io/blog/2023/12/28/support-feature-magic-numbers-deprecation
AlexxIT commented 8 months ago

https://github.com/AlexxIT/YandexStation/releases/tag/v3.13.0