Skip to content

Commit a3482a5

Browse files
author
Tom Lasswell
committed
fix: Resolve mypy return-value error in color_mode property
1 parent 4e3592c commit a3482a5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

custom_components/govee/light.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ def color_mode(self) -> ColorMode:
196196
return ColorMode.BRIGHTNESS
197197
if ColorMode.COLOR_TEMP in modes:
198198
return ColorMode.COLOR_TEMP
199-
return next(iter(modes))
199+
return ColorMode(next(iter(modes)))
200200

201201
@property
202202
def is_on(self) -> bool | None:

0 commit comments

Comments
 (0)