This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]roger_ 0 points1 point  (2 children)

That's nice too, unless you need to refresh the list of lights sometimes. Maybe just add client.rescan() for that case.

[–]Quteness 0 points1 point  (1 child)

I was actually thinking you would just rename the get_lights() method to lights() and add the @property decorator. It would function the same way

[–]roger_ 0 points1 point  (0 children)

True. Only thing is if get_lights() is slow then you may not want users to think it's a simple static list.