From 7b4df98875755e8250bfbf522a29e0df0ac65329 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Mon, 29 Jun 2020 06:37:56 -0500 Subject: [PATCH] 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. --- homeassistant/components/homekit/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/homekit/__init__.py b/homeassistant/components/homekit/__init__.py index c5a921a9dd2..bdab5a8ad07 100644 --- a/homeassistant/components/homekit/__init__.py +++ b/homeassistant/components/homekit/__init__.py @@ -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