Silence spurious warning when HomeKit is already running (#37199)

If homekit.start is called when homekit is already running
we previous warned.  Downgrade the warning to a debug message
as nothing is actually wrong.
This commit is contained in:
J. Nick Koston
2020-06-29 06:37:56 -05:00
committed by GitHub
parent 5badbcb012
commit 7b4df98875

View File

@@ -327,9 +327,12 @@ def _async_register_events_and_services(hass: HomeAssistant):
if HOMEKIT not in hass.data[DOMAIN][entry_id]:
continue
homekit = hass.data[DOMAIN][entry_id][HOMEKIT]
if homekit.status == STATUS_RUNNING:
_LOGGER.debug("HomeKit is already running")
continue
if homekit.status != STATUS_READY:
_LOGGER.warning(
"HomeKit is not ready. Either it is already running or has "
"HomeKit is not ready. Either it is already starting up or has "
"been stopped."
)
continue