Do not fail MQTT setup if numbers configured via yaml can't be validated (#102316)
Add number
This commit is contained in:
parent
f1eb28b7ac
commit
12c4a10cfc
3 changed files with 15 additions and 29 deletions
|
@ -17,7 +17,6 @@ from homeassistant.helpers import config_validation as cv
|
|||
from . import (
|
||||
cover as cover_platform,
|
||||
event as event_platform,
|
||||
number as number_platform,
|
||||
sensor as sensor_platform,
|
||||
)
|
||||
from .const import (
|
||||
|
@ -56,10 +55,7 @@ CONFIG_SCHEMA_BASE = vol.Schema(
|
|||
Platform.LAWN_MOWER.value: vol.All(cv.ensure_list, [dict]),
|
||||
Platform.LIGHT.value: vol.All(cv.ensure_list, [dict]),
|
||||
Platform.LOCK.value: vol.All(cv.ensure_list, [dict]),
|
||||
Platform.NUMBER.value: vol.All(
|
||||
cv.ensure_list,
|
||||
[number_platform.PLATFORM_SCHEMA_MODERN], # type: ignore[has-type]
|
||||
),
|
||||
Platform.NUMBER.value: vol.All(cv.ensure_list, [dict]),
|
||||
Platform.SCENE.value: vol.All(cv.ensure_list, [dict]),
|
||||
Platform.SELECT.value: vol.All(cv.ensure_list, [dict]),
|
||||
Platform.SENSOR.value: vol.All(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue