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,8 +1,10 @@
"""Allow users to set and activate scenes."""
from __future__ import annotations
import functools as ft
import importlib
import logging
from typing import Any, Optional
from typing import Any
import voluptuous as vol
@ -94,7 +96,7 @@ class Scene(Entity):
return False
@property
def state(self) -> Optional[str]:
def state(self) -> str | None:
"""Return the state of the scene."""
return STATE