mirror of
https://github.com/home-assistant/core
synced 2024-09-15 17:29:45 +02:00
Add basic type hints to subaru (#69324)
This commit is contained in:
parent
9c949f7f8f
commit
36be2bfd75
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user