Add ColorModule for smart devices (#840)

Adds support L530 hw_version 1.0
This commit is contained in:
Steven B
2024-04-20 16:18:35 +01:00
committed by GitHub
parent 4573260ac8
commit aeb2c923c6
9 changed files with 160 additions and 57 deletions

View File

@@ -167,7 +167,8 @@ class SmartDevice(Device):
mod.__name__,
)
module = mod(self, mod.REQUIRED_COMPONENT)
self.modules[module.name] = module
if await module._check_supported():
self.modules[module.name] = module
async def _initialize_features(self):
"""Initialize device features."""