Update typing 11 (#48072)

This commit is contained in:
Marc Mueller 2021-03-18 13:21:46 +01:00 committed by GitHub
parent 99f9f8dec0
commit 3d2b81a401
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
45 changed files with 206 additions and 154 deletions

View file

@ -1,8 +1,10 @@
"""Support for Nightscout sensors."""
from __future__ import annotations
from asyncio import TimeoutError as AsyncIOTimeoutError
from datetime import timedelta
import logging
from typing import Callable, List
from typing import Callable
from aiohttp import ClientError
from py_nightscout import Api as NightscoutAPI
@ -24,7 +26,7 @@ DEFAULT_NAME = "Blood Glucose"
async def async_setup_entry(
hass: HomeAssistant,
entry: ConfigEntry,
async_add_entities: Callable[[List[Entity], bool], None],
async_add_entities: Callable[[list[Entity], bool], None],
) -> None:
"""Set up the Glucose Sensor."""
api = hass.data[DOMAIN][entry.entry_id]