Skip to content

Commit 5cfb2ba

Browse files
committed
Add support Yandex Station 3
1 parent 0b283d1 commit 5cfb2ba

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

custom_components/yandex_station/core/quasar_info.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"yandexmidi": ["yandex:station-2", "Яндекс", "Станция 2 (2022)"], # zigbee
1212
"cucumber": ["yandex:station-midi", "Яндекс", "Станция Миди (2023)"], # zigbee
1313
"chiron": ["yandex:station-duo-max", "Яндекс", "Станция Дуо Макс (2023)"], # zigbee
14+
"orion": ["yandex:station-max", "Яндекс", "Станция 3 (2025)"],
1415
# платформа Яндекс.ТВ (без облачного управления!)
1516
"yandexmodule": ["yandex:module", "Яндекс", "Модуль (2019)"],
1617
"yandexmodule_2": ["yandex:module-2", "Яндекс", "Модуль 2 (2021)"],

custom_components/yandex_station/core/yandex_station.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,7 @@ async def _set_led(self, **kwargs):
363363
"cucumber",
364364
"plum",
365365
"bergamot",
366+
"orion",
366367
):
367368
raise HomeAssistantError("Поддерживаются только станции с часами")
368369

@@ -376,7 +377,7 @@ async def _set_led(self, **kwargs):
376377

377378
# https://github.com/AlexxIT/YandexStation/issues/697
378379
if "visualization" in kwargs:
379-
if self.device_platform != "yandexstation_2":
380+
if self.device_platform not in ("yandexstation_2", "orion"):
380381
raise HomeAssistantError("Поддерживаются только станции с экраном")
381382

382383
visualization = led.setdefault(

0 commit comments

Comments
 (0)