Do not fail MQTT setup if humidifiers configured via yaml can't be validated (#102312)
Add humidifier
This commit is contained in:
parent
6baa8082d5
commit
f4e7c5aed3
3 changed files with 37 additions and 54 deletions
|
@ -18,7 +18,6 @@ from . import (
|
|||
button as button_platform,
|
||||
cover as cover_platform,
|
||||
event as event_platform,
|
||||
humidifier as humidifier_platform,
|
||||
lawn_mower as lawn_mower_platform,
|
||||
lock as lock_platform,
|
||||
number as number_platform,
|
||||
|
@ -60,10 +59,7 @@ CONFIG_SCHEMA_BASE = vol.Schema(
|
|||
[event_platform.PLATFORM_SCHEMA_MODERN], # type: ignore[has-type]
|
||||
),
|
||||
Platform.FAN.value: vol.All(cv.ensure_list, [dict]),
|
||||
Platform.HUMIDIFIER.value: vol.All(
|
||||
cv.ensure_list,
|
||||
[humidifier_platform.PLATFORM_SCHEMA_MODERN], # type: ignore[has-type]
|
||||
),
|
||||
Platform.HUMIDIFIER.value: vol.All(cv.ensure_list, [dict]),
|
||||
Platform.IMAGE.value: vol.All(cv.ensure_list, [dict]),
|
||||
Platform.LAWN_MOWER.value: vol.All(
|
||||
cv.ensure_list,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue