Fix MQTT debug info (#66146)

This commit is contained in:
Erik Montnemery
2022-02-09 09:43:03 +01:00
committed by GitHub
parent 83b7fac9a4
commit da38d9ab80

View File

@@ -578,6 +578,7 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
websocket_api.async_register_command(hass, websocket_subscribe)
websocket_api.async_register_command(hass, websocket_remove_device)
websocket_api.async_register_command(hass, websocket_mqtt_info)
debug_info.initialize(hass)
if conf is None:
# If we have a config entry, setup is done by that config entry.
@@ -596,8 +597,6 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
)
)
debug_info.initialize(hass)
return True