mirror of
https://github.com/home-assistant/core.git
synced 2025-08-04 05:05:09 +02:00
Convert API integration to async setup (#43685)
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user