Closed d-EScape closed 3 years ago
Solved it by wrapping the motion blind object inside another class that also includes it's own callback function.
Yes you are correct, wrapping the motion blind object in a class is the way to go (at least I intended it that way). That is also how it is done in HomeAssistant.
How can a callback tell which blind triggered it when it is not possible to pass an argument to the callback?
If line 813 is changed from
callback()
tocallback(self)
then the (sending) MotionBlind instance would be available to the callback. But maybe there are better ways?