diff --git a/custom_components/webrtc/__init__.py b/custom_components/webrtc/__init__.py index 35ce8c5..39de61e 100644 --- a/custom_components/webrtc/__init__.py +++ b/custom_components/webrtc/__init__.py @@ -61,6 +61,7 @@ HLS_COOKIE = "webrtc-hls-session" HLS_SESSION = str(uuid.uuid4()) + async def async_setup(hass: HomeAssistant, config: dict): # 1. Serve lovelace card path = Path(__file__).parent / "www" @@ -342,4 +343,4 @@ async def get(self, request: web.Request, filename: str): raise HTTPNotFound() body = await r.read() - return web.Response(body=body, content_type=r.content_type) \ No newline at end of file + return web.Response(body=body, content_type=r.content_type)