From 3a17e22cfa6c13a6bc42ec5278357e8485ca2975 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Fri, 27 Nov 2020 09:50:19 +0100 Subject: [PATCH] Convert API integration to async setup (#43685) --- homeassistant/components/api/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/api/__init__.py b/homeassistant/components/api/__init__.py index 72fb2636067..f383f982abc 100644 --- a/homeassistant/components/api/__init__.py +++ b/homeassistant/components/api/__init__.py @@ -56,7 +56,7 @@ STREAM_PING_PAYLOAD = "ping" STREAM_PING_INTERVAL = 50 # seconds -def setup(hass, config): +async def async_setup(hass, config): """Register the API with the HTTP interface.""" hass.http.register_view(APIStatusView) hass.http.register_view(APIEventStream)