mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00: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
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.components.lock import LockEntity
|
from homeassistant.components.lock import LockEntity
|
||||||
|
from homeassistant.config_entries import ConfigEntry
|
||||||
from homeassistant.const import SERVICE_LOCK, SERVICE_UNLOCK
|
from homeassistant.const import SERVICE_LOCK, SERVICE_UNLOCK
|
||||||
|
from homeassistant.core import HomeAssistant
|
||||||
from homeassistant.helpers import entity_platform
|
from homeassistant.helpers import entity_platform
|
||||||
|
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
||||||
|
|
||||||
from . import DOMAIN, get_device_info
|
from . import DOMAIN, get_device_info
|
||||||
from .const import (
|
from .const import (
|
||||||
@ -24,7 +27,11 @@ from .remote_service import async_call_remote_service
|
|||||||
_LOGGER = logging.getLogger(__name__)
|
_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."""
|
"""Set up the Subaru locks by config_entry."""
|
||||||
entry = hass.data[DOMAIN][config_entry.entry_id]
|
entry = hass.data[DOMAIN][config_entry.entry_id]
|
||||||
controller = entry[ENTRY_CONTROLLER]
|
controller = entry[ENTRY_CONTROLLER]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user