1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Remove str from cover device class (#83396)

* Remove str from cover device class

* Fix tests
This commit is contained in:
Franck Nijhof
2022-12-06 16:13:29 +01:00
committed by GitHub
parent ba0d6fe611
commit c507ad86d1
6 changed files with 15 additions and 18 deletions

View File

@@ -1086,7 +1086,7 @@ _INHERITANCE_MATCH: dict[str, list[ClassTypeHintMatch]] = {
matches=[
TypeHintMatch(
function_name="device_class",
return_type=["CoverDeviceClass", "str", None],
return_type=["CoverDeviceClass", None],
),
TypeHintMatch(
function_name="current_cover_position",