File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -216,6 +216,16 @@ async def async_turn_off(self, **kwargs):
216216 await self ._coordinator .client .async_set_light_global_enabled (False )
217217 await self ._coordinator .async_refresh ()
218218
219+ @property
220+ def color_mode (self ) -> ColorMode | str | None :
221+ """Return the color mode of the light."""
222+ return ColorMode .ONOFF
223+
224+ @property
225+ def supported_color_modes (self ) -> set [str ]:
226+ """Flag supported color modes."""
227+ return {self .color_mode }
228+
219229
220230class FloodLight (DahuaBaseEntity , LightEntity ):
221231 """
@@ -336,3 +346,13 @@ async def async_turn_off(self, **kwargs):
336346 def icon (self ):
337347 """Return the icon of this switch."""
338348 return SECURITY_LIGHT_ICON
349+
350+ @property
351+ def color_mode (self ) -> ColorMode | str | None :
352+ """Return the color mode of the light."""
353+ return ColorMode .ONOFF
354+
355+ @property
356+ def supported_color_modes (self ) -> set [str ]:
357+ """Flag supported color modes."""
358+ return {self .color_mode }
You can’t perform that action at this time.
0 commit comments