فهرست منبع

Light: make supported_color_modes None when none are supported

Code returned an empty set, but upstream docs are now updated to clarify
that None is the expected value. This fallback should not be reached for
real devices, but issue #3230 suggests that it is.
Jason Rumney 9 ماه پیش
والد
کامیت
a7f888edb6
1فایلهای تغییر یافته به همراه0 افزوده شده و 1 حذف شده
  1. 0 1
      custom_components/tuya_local/light.py

+ 0 - 1
custom_components/tuya_local/light.py

@@ -88,7 +88,6 @@ class TuyaLocalLight(TuyaLocalEntity, LightEntity):
                     self.name or "light",
                     self.name or "light",
                     self.color_mode,
                     self.color_mode,
                 )
                 )
-        return set()
 
 
     @property
     @property
     def supported_features(self):
     def supported_features(self):