Update typing 12 (#48073)

This commit is contained in:
Marc Mueller 2021-03-18 14:31:38 +01:00 committed by GitHub
parent 6cd6ad6904
commit a3cd1854f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
75 changed files with 399 additions and 312 deletions

View file

@ -1,5 +1,7 @@
"""StarLine base entity."""
from typing import Callable, Optional
from __future__ import annotations
from typing import Callable
from homeassistant.helpers.entity import Entity
@ -17,7 +19,7 @@ class StarlineEntity(Entity):
self._device = device
self._key = key
self._name = name
self._unsubscribe_api: Optional[Callable] = None
self._unsubscribe_api: Callable | None = None
@property
def should_poll(self):