Add lock setup type hints (#63296)
Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
parent
7967f49e48
commit
eed7ce55b3
15 changed files with 130 additions and 23 deletions
|
@ -1,12 +1,17 @@
|
|||
"""Support for StarLine lock."""
|
||||
from homeassistant.components.lock import LockEntity
|
||||
from homeassistant.config_entries import ConfigEntry
|
||||
from homeassistant.core import HomeAssistant
|
||||
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
||||
|
||||
from .account import StarlineAccount, StarlineDevice
|
||||
from .const import DOMAIN
|
||||
from .entity import StarlineEntity
|
||||
|
||||
|
||||
async def async_setup_entry(hass, entry, async_add_entities):
|
||||
async def async_setup_entry(
|
||||
hass: HomeAssistant, entry: ConfigEntry, async_add_entities: AddEntitiesCallback
|
||||
) -> None:
|
||||
"""Set up the StarLine lock."""
|
||||
account: StarlineAccount = hass.data[DOMAIN][entry.entry_id]
|
||||
entities = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue