Add init type hints [s] (#63193)

Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
epenet
2022-01-02 16:29:52 +01:00
committed by GitHub
parent 33e926371f
commit 00ec874389
27 changed files with 73 additions and 42 deletions

View File

@@ -1,5 +1,4 @@
"""Support to control a Salda Smarty XP/XV ventilation unit."""
from datetime import timedelta
import ipaddress
import logging
@@ -8,10 +7,12 @@ from pysmarty import Smarty
import voluptuous as vol
from homeassistant.const import CONF_HOST, CONF_NAME
from homeassistant.core import HomeAssistant
from homeassistant.helpers import discovery
import homeassistant.helpers.config_validation as cv
from homeassistant.helpers.dispatcher import dispatcher_send
from homeassistant.helpers.event import track_time_interval
from homeassistant.helpers.typing import ConfigType
DOMAIN = "smarty"
DATA_SMARTY = "smarty"
@@ -35,7 +36,7 @@ RPM = "rpm"
SIGNAL_UPDATE_SMARTY = "smarty_update"
def setup(hass, config):
def setup(hass: HomeAssistant, config: ConfigType) -> bool:
"""Set up the smarty environment."""
conf = config[DOMAIN]