Open brianmay opened 8 years ago
Thinking about this, by_label()
should never return DeviceTimeoutError
as we are only trying to get a list of lights, not try to talk to them.
Still seems to be a problem in that if DeviceTimeoutError occurs in some situations it will forget about that light even if it is turned back on again. Still investigating.
Think we really should cache the label so we don't have to do a network access every time __repr__
is called on the light.
I too have run into this. The code should really keep going instead of crashing like this. I shouldn't have to restart the script because of a momentary IP glitch.
Seems that the library somehow gets into a weird state where it won't talk anymore to the light, and has to be restarted for it to work again.
I believe the light in question is online and fully operational. Yes I know, the stack trace would imply otherwise.