mirror of
https://github.com/home-assistant/core.git
synced 2025-11-08 10:29:27 +00:00
Accept None directly in the selector schemas (#151510)
Co-authored-by: Erik Montnemery <erik@montnemery.com>
This commit is contained in:
@@ -83,7 +83,7 @@ _FIELD_SCHEMA = vol.Schema(
|
||||
|
||||
_TRIGGER_SCHEMA = vol.Schema(
|
||||
{
|
||||
vol.Optional("target"): vol.Any(TargetSelector.CONFIG_SCHEMA, None),
|
||||
vol.Optional("target"): TargetSelector.CONFIG_SCHEMA,
|
||||
vol.Optional("fields"): vol.Schema({str: _FIELD_SCHEMA}),
|
||||
},
|
||||
extra=vol.ALLOW_EXTRA,
|
||||
|
||||
Reference in New Issue
Block a user