mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Convert API integration to async setup (#43685)
This commit is contained in:
parent
2498340e1f
commit
3a17e22cfa
@ -56,7 +56,7 @@ STREAM_PING_PAYLOAD = "ping"
|
|||||||
STREAM_PING_INTERVAL = 50 # seconds
|
STREAM_PING_INTERVAL = 50 # seconds
|
||||||
|
|
||||||
|
|
||||||
def setup(hass, config):
|
async def async_setup(hass, config):
|
||||||
"""Register the API with the HTTP interface."""
|
"""Register the API with the HTTP interface."""
|
||||||
hass.http.register_view(APIStatusView)
|
hass.http.register_view(APIStatusView)
|
||||||
hass.http.register_view(APIEventStream)
|
hass.http.register_view(APIEventStream)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user