Disable lighttransition module on child devices (#1013)

Module is not working properly for updates on KS240 so temporarily
disable until fixed
This commit is contained in:
Steven B 2024-06-25 19:52:25 +01:00 committed by GitHub
parent b80e3c916a
commit f7557daa32
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -183,11 +183,9 @@ class LightTransition(SmartModule):
return {self.QUERY_GETTER_NAME: None} return {self.QUERY_GETTER_NAME: None}
async def _check_supported(self): async def _check_supported(self):
"""Additional check to see if the module is supported by the device. """Additional check to see if the module is supported by the device."""
# TODO Temporarily disabled on child light devices until module fixed
Parent devices that report components of children such as ks240 will not have # to support updates
the brightness value is sysinfo. if self._device._parent is not None:
""" return False
# Look in _device.sys_info here because self.data is either sys_info or
# get_preset_rules depending on whether it's a child device or not.
return "brightness" in self._device.sys_info return "brightness" in self._device.sys_info