delfick / photons

Python3.6+ asyncio framework for interacting with LIFX devices
https://photons.delfick.com
MIT License
73 stars 6 forks source link

capabilities: make the class behave like the cap property of device finder #88

Closed Djelibeybi closed 2 years ago

Djelibeybi commented 2 years ago

Instead of renaming the caps property of the Device, I made the Capablity class return the capabilities in the format expected.

So, device.cap is a now an instance of Capability, but device finder and all the tests and downstream apps, including Interactor work unmodified.

This PR should be merged prior to the improved device finder. I'll rebase that branch off main if/when this is merged.

Signed-off-by: Avi Miller me@dje.li

delfick commented 2 years ago

fixed in other PRs :)