From 36be2bfd750209a5f5e067a53a3a01a37fbf0efb Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Tue, 5 Apr 2022 10:28:07 +0200 Subject: [PATCH] Add basic type hints to subaru (#69324) --- homeassistant/components/subaru/lock.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/subaru/lock.py b/homeassistant/components/subaru/lock.py index fb460c6279a..3c619690e96 100644 --- a/homeassistant/components/subaru/lock.py +++ b/homeassistant/components/subaru/lock.py @@ -4,8 +4,11 @@ import logging import voluptuous as vol from homeassistant.components.lock import LockEntity +from homeassistant.config_entries import ConfigEntry from homeassistant.const import SERVICE_LOCK, SERVICE_UNLOCK +from homeassistant.core import HomeAssistant from homeassistant.helpers import entity_platform +from homeassistant.helpers.entity_platform import AddEntitiesCallback from . import DOMAIN, get_device_info from .const import ( @@ -24,7 +27,11 @@ from .remote_service import async_call_remote_service _LOGGER = logging.getLogger(__name__) -async def async_setup_entry(hass, config_entry, async_add_entities): +async def async_setup_entry( + hass: HomeAssistant, + config_entry: ConfigEntry, + async_add_entities: AddEntitiesCallback, +) -> None: """Set up the Subaru locks by config_entry.""" entry = hass.data[DOMAIN][config_entry.entry_id] controller = entry[ENTRY_CONTROLLER]