Skip to content

Commit a77caee

Browse files
authored
Fix supported_features type on for non group lights (#71)
* Fix supported_features type on for non group lights * oops
1 parent a62f188 commit a77caee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

zha/application/platforms/light/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def __init__(self, *args, **kwargs):
133133
self._xy_color: tuple[float, float] | None = None
134134
self._color_mode = ColorMode.UNKNOWN # Set by subclasses
135135
self._color_temp: int | None = None
136-
self._supported_features: int = 0
136+
self._supported_features: LightEntityFeature = LightEntityFeature(0)
137137
self._state: bool | None
138138
self._brightness: int | None = None
139139
self._off_with_transition: bool = False
@@ -202,7 +202,7 @@ def effect(self) -> str | None:
202202
return self._effect
203203

204204
@property
205-
def supported_features(self) -> int:
205+
def supported_features(self) -> LightEntityFeature:
206206
"""Flag supported features."""
207207
return self._supported_features
208208

0 commit comments

Comments
 (0)