Add init type hints [d] (#63101)
Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
parent
2738217c4b
commit
6d51cccbf7
15 changed files with 46 additions and 22 deletions
|
@ -8,8 +8,9 @@ import threading
|
|||
import requests
|
||||
import voluptuous as vol
|
||||
|
||||
from homeassistant.core import ServiceCall
|
||||
from homeassistant.core import HomeAssistant, ServiceCall
|
||||
import homeassistant.helpers.config_validation as cv
|
||||
from homeassistant.helpers.typing import ConfigType
|
||||
from homeassistant.util import raise_if_invalid_filename, raise_if_invalid_path
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
@ -42,7 +43,7 @@ CONFIG_SCHEMA = vol.Schema(
|
|||
)
|
||||
|
||||
|
||||
def setup(hass, config):
|
||||
def setup(hass: HomeAssistant, config: ConfigType) -> bool:
|
||||
"""Listen for download events to download files."""
|
||||
download_path = config[DOMAIN][CONF_DOWNLOAD_DIR]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue