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]