Add constructor return type in integrations L-N (#50888)
* Add constructor return type in integrations L-N * Small fix
This commit is contained in:
parent
f3db819548
commit
e06a2a53c4
41 changed files with 44 additions and 44 deletions
|
@ -30,7 +30,7 @@ class LocalSource(MediaSource):
|
|||
|
||||
name: str = "Local Media"
|
||||
|
||||
def __init__(self, hass: HomeAssistant):
|
||||
def __init__(self, hass: HomeAssistant) -> None:
|
||||
"""Initialize local source."""
|
||||
super().__init__(DOMAIN)
|
||||
self.hass = hass
|
||||
|
@ -183,7 +183,7 @@ class LocalMediaView(HomeAssistantView):
|
|||
url = "/media/{source_dir_id}/{location:.*}"
|
||||
name = "media"
|
||||
|
||||
def __init__(self, hass: HomeAssistant, source: LocalSource):
|
||||
def __init__(self, hass: HomeAssistant, source: LocalSource) -> None:
|
||||
"""Initialize the media view."""
|
||||
self.hass = hass
|
||||
self.source = source
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue