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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
27 changed files with 73 additions and 42 deletions

View file

@ -9,8 +9,9 @@ from scsgate.tasks import GetStatusTask
import voluptuous as vol
from homeassistant.const import CONF_DEVICE, CONF_NAME
from homeassistant.core import EVENT_HOMEASSISTANT_STOP
from homeassistant.core import EVENT_HOMEASSISTANT_STOP, HomeAssistant
import homeassistant.helpers.config_validation as cv
from homeassistant.helpers.typing import ConfigType
_LOGGER = logging.getLogger(__name__)
@ -27,7 +28,7 @@ SCSGATE_SCHEMA = vol.Schema(
)
def setup(hass, config):
def setup(hass: HomeAssistant, config: ConfigType) -> bool:
"""Set up the SCSGate component."""
device = config[DOMAIN][CONF_DEVICE]
scsgate = None