mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-08-08 11:44:02 +00:00
Add ColorModule for smart devices (#840)
Adds support L530 hw_version 1.0
This commit is contained in:
@@ -93,3 +93,12 @@ class SmartModule(Module):
|
||||
def supported_version(self) -> int:
|
||||
"""Return version supported by the device."""
|
||||
return self._device._components[self.REQUIRED_COMPONENT]
|
||||
|
||||
async def _check_supported(self) -> bool:
|
||||
"""Additional check to see if the module is supported by the device.
|
||||
|
||||
Used for parents who report components on the parent that are only available
|
||||
on the child or for modules where the device has a pointless component like
|
||||
color_temp_range but only supports one value.
|
||||
"""
|
||||
return True
|
||||
|
Reference in New Issue
Block a user