Convert API integration to async setup (#43685)
This commit is contained in:
parent
2498340e1f
commit
3a17e22cfa
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue