Cleanup mqtt discovery code (#112749)

* Cleanup mqtt discovery code

* Cleanup mqtt discovery code
This commit is contained in:
Jan Bouwhuis 2024-03-09 11:54:27 +01:00 committed by GitHub
parent a2180b16c3
commit 87318c9111
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 7 additions and 13 deletions

View file

@ -463,7 +463,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
# Setup discovery
if conf.get(CONF_DISCOVERY, DEFAULT_DISCOVERY):
await discovery.async_start(
hass, conf.get(CONF_DISCOVERY_PREFIX, DEFAULT_PREFIX), entry
hass, conf.get(CONF_DISCOVERY_PREFIX, DEFAULT_PREFIX)
)
# Setup reload service after all platforms have loaded
await async_setup_reload_service()