mirror of
https://github.com/python-kasa/python-kasa.git
synced 2024-12-22 19:23:34 +00:00
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:
parent
b80e3c916a
commit
f7557daa32
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user