Do not fail MQTT setup if scenes configured via yaml can't be validated (#102317)
Add scene
This commit is contained in:
parent
c266583bea
commit
615b02be59
2 changed files with 11 additions and 22 deletions
|
@ -25,7 +25,6 @@ from . import (
|
|||
lawn_mower as lawn_mower_platform,
|
||||
lock as lock_platform,
|
||||
number as number_platform,
|
||||
scene as scene_platform,
|
||||
select as select_platform,
|
||||
sensor as sensor_platform,
|
||||
siren as siren_platform,
|
||||
|
@ -96,10 +95,7 @@ CONFIG_SCHEMA_BASE = vol.Schema(
|
|||
cv.ensure_list,
|
||||
[number_platform.PLATFORM_SCHEMA_MODERN], # type: ignore[has-type]
|
||||
),
|
||||
Platform.SCENE.value: vol.All(
|
||||
cv.ensure_list,
|
||||
[scene_platform.PLATFORM_SCHEMA_MODERN], # type: ignore[has-type]
|
||||
),
|
||||
Platform.SCENE.value: vol.All(cv.ensure_list, [dict]),
|
||||
Platform.SELECT.value: vol.All(
|
||||
cv.ensure_list,
|
||||
[select_platform.PLATFORM_SCHEMA_MODERN], # type: ignore[has-type]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue