Bugfix invalid entity_config parameter HomeKit (#17143)
This commit is contained in:
parent
769dda735d
commit
52ff232797
2 changed files with 5 additions and 1 deletions
|
@ -44,6 +44,9 @@ SWITCH_TYPE_SCHEMA = BASIC_INFO_SCHEMA.extend({
|
|||
|
||||
def validate_entity_config(values):
|
||||
"""Validate config entry for CONF_ENTITY."""
|
||||
if not isinstance(values, dict):
|
||||
raise vol.Invalid('expected a dictionary')
|
||||
|
||||
entities = {}
|
||||
for entity_id, config in values.items():
|
||||
entity = cv.entity_id(entity_id)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue