Add setup type hints to august (#63388)
Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
parent
058520769b
commit
4c14aad90f
5 changed files with 30 additions and 13 deletions
|
@ -10,6 +10,7 @@ from homeassistant.core import HomeAssistant, callback
|
|||
from homeassistant.helpers import aiohttp_client
|
||||
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
||||
|
||||
from . import AugustData
|
||||
from .const import DATA_AUGUST, DEFAULT_NAME, DEFAULT_TIMEOUT, DOMAIN
|
||||
from .entity import AugustEntityMixin
|
||||
|
||||
|
@ -20,7 +21,7 @@ async def async_setup_entry(
|
|||
async_add_entities: AddEntitiesCallback,
|
||||
) -> None:
|
||||
"""Set up August cameras."""
|
||||
data = hass.data[DOMAIN][config_entry.entry_id][DATA_AUGUST]
|
||||
data: AugustData = hass.data[DOMAIN][config_entry.entry_id][DATA_AUGUST]
|
||||
session = aiohttp_client.async_get_clientsession(hass)
|
||||
async_add_entities(
|
||||
[
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue