Update typing 09 (#48059)

This commit is contained in:
Marc Mueller
2021-03-18 10:02:00 +01:00
committed by GitHub
parent 2ab640aaef
commit 283b4abe67
39 changed files with 239 additions and 196 deletions

View File

@ -1,6 +1,8 @@
"""Support for ISY994 binary sensors."""
from __future__ import annotations
from datetime import timedelta
from typing import Callable, Union
from typing import Callable
from pyisy.constants import (
CMD_OFF,
@ -173,7 +175,7 @@ async def async_setup_entry(
async_add_entities(devices)
def _detect_device_type_and_class(node: Union[Group, Node]) -> (str, str):
def _detect_device_type_and_class(node: Group | Node) -> (str, str):
try:
device_type = node.type
except AttributeError: