From 40e77e2af0e195a0726772aeda91ea8dabb08535 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Wed, 5 Jan 2022 06:25:16 +0100 Subject: [PATCH] Fix type hint in http register_view (#63385) Co-authored-by: epenet --- homeassistant/components/http/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/http/__init__.py b/homeassistant/components/http/__init__.py index b12b6f83e3a..60bc6833caf 100644 --- a/homeassistant/components/http/__init__.py +++ b/homeassistant/components/http/__init__.py @@ -255,7 +255,7 @@ class HomeAssistantHTTP: self.runner: web.AppRunner | None = None self.site: HomeAssistantTCPSite | None = None - def register_view(self, view: HomeAssistantView) -> None: + def register_view(self, view: HomeAssistantView | type[HomeAssistantView]) -> None: """Register a view with the WSGI server. The view argument must be a class that inherits from HomeAssistantView.