mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 18:57:06 +00:00
Fix type hint in http register_view (#63385)
Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
parent
e6e200f3c1
commit
40e77e2af0
@ -255,7 +255,7 @@ class HomeAssistantHTTP:
|
|||||||
self.runner: web.AppRunner | None = None
|
self.runner: web.AppRunner | None = None
|
||||||
self.site: HomeAssistantTCPSite | 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.
|
"""Register a view with the WSGI server.
|
||||||
|
|
||||||
The view argument must be a class that inherits from HomeAssistantView.
|
The view argument must be a class that inherits from HomeAssistantView.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user