Add Hass.io discovery to MQTT (#16962)

* Add Hass.io discovery to MQTT

* Update en.json

* Update __init__.py

* Update config_flow.py

* Update strings.json

* Update test_config_flow.py

* Lint

* Ensure we don't send bad data in config entry
This commit is contained in:
Paulus Schoutsen authored and GitHub committed 2018-10-01 14:11:21 +02:00
1 parent 5bc2e78ab4
commit c69a790ede
5 files changed
+141 -6

No files matched your search

+1 -1
View File
@@ -411,7 +411,7 @@ async def async_setup_entry(hass, entry):
# If user didn't have configuration.yaml config, generate defaults
if conf is None:
conf = CONFIG_SCHEMA({
DOMAIN: entry.data
DOMAIN: entry.data,
})[DOMAIN]
elif any(key in conf for key in entry.data):
_LOGGER.warning(