Update Union typing (1) [Py310] (#86424)

This commit is contained in:
Marc Mueller 2023-01-23 08:38:45 +01:00 committed by GitHub
parent d7dda6bee5
commit 1eec87214f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 30 additions and 45 deletions

View file

@ -2,7 +2,7 @@
from __future__ import annotations
from typing import Any, Union
from typing import Any
from pydeconz.models.event import EventType
from pydeconz.models.light.lock import Lock
@ -50,7 +50,7 @@ async def async_setup_entry(
)
class DeconzLock(DeconzDevice[Union[DoorLock, Lock]], LockEntity):
class DeconzLock(DeconzDevice[DoorLock | Lock], LockEntity):
"""Representation of a deCONZ lock."""
TYPE = DOMAIN