mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 20:27:08 +00:00
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:
parent
5badbcb012
commit
7b4df98875
@ -327,9 +327,12 @@ def _async_register_events_and_services(hass: HomeAssistant):
|
|||||||
if HOMEKIT not in hass.data[DOMAIN][entry_id]:
|
if HOMEKIT not in hass.data[DOMAIN][entry_id]:
|
||||||
continue
|
continue
|
||||||
homekit = hass.data[DOMAIN][entry_id][HOMEKIT]
|
homekit = hass.data[DOMAIN][entry_id][HOMEKIT]
|
||||||
|
if homekit.status == STATUS_RUNNING:
|
||||||
|
_LOGGER.debug("HomeKit is already running")
|
||||||
|
continue
|
||||||
if homekit.status != STATUS_READY:
|
if homekit.status != STATUS_READY:
|
||||||
_LOGGER.warning(
|
_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."
|
"been stopped."
|
||||||
)
|
)
|
||||||
continue
|
continue
|
||||||
|
Loading…
x
Reference in New Issue
Block a user