Do not fail MQTT setup if humidifiers configured via yaml can't be validated (#102312)

Add humidifier
This commit is contained in:
Jan Bouwhuis 2023-10-19 23:29:49 +02:00 committed by GitHub
parent 6baa8082d5
commit f4e7c5aed3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 37 additions and 54 deletions

View file

@ -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,