Fix MQTT config schema to ensure correct validation (#73619)

* Ensure config schema validation

* Use correct schema for device_tracker

* Remove schema validation from the platform setup

* Remove loop to build schema
This commit is contained in:
Jan Bouwhuis 2022-06-20 08:51:12 +02:00 committed by GitHub
parent fcd8859542
commit 57daeaa174
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
25 changed files with 258 additions and 176 deletions

View file

@ -95,9 +95,7 @@ async def async_setup_entry(
"""Set up MQTT select through configuration.yaml and dynamically through MQTT discovery."""
# load and initialize platform config from configuration.yaml
config_entry.async_on_unload(
await async_setup_platform_discovery(
hass, select.DOMAIN, PLATFORM_SCHEMA_MODERN
)
await async_setup_platform_discovery(hass, select.DOMAIN)
)
# setup for discovery
setup = functools.partial(