Update typing 13 (#48077)

This commit is contained in:
Marc Mueller 2021-03-18 14:43:52 +01:00 committed by GitHub
parent a3cd1854f6
commit b67b9b94f9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
51 changed files with 287 additions and 226 deletions

View file

@ -1,6 +1,7 @@
"""Combination of multiple media players for a universal controller."""
from __future__ import annotations
from copy import copy
from typing import Optional
import voluptuous as vol
@ -270,7 +271,7 @@ class UniversalMediaPlayer(MediaPlayerEntity):
return False
@property
def device_class(self) -> Optional[str]:
def device_class(self) -> str | None:
"""Return the class of this device."""
return self._device_class