Convert API integration to async setup ()

This commit is contained in:
Paulus Schoutsen 2020-11-27 09:50:19 +01:00 committed by GitHub
parent 2498340e1f
commit 3a17e22cfa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)