diff --git a/kasa/smart/modules/lighttransition.py b/kasa/smart/modules/lighttransition.py index a11c7d95..1e5ba0cf 100644 --- a/kasa/smart/modules/lighttransition.py +++ b/kasa/smart/modules/lighttransition.py @@ -181,3 +181,13 @@ class LightTransition(SmartModule): return {} else: return {self.QUERY_GETTER_NAME: None} + + async def _check_supported(self): + """Additional check to see if the module is supported by the device. + + Parent devices that report components of children such as ks240 will not have + the brightness value is sysinfo. + """ + # 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