Sleeps/awaits some other resource until ping_hb() has run at least once (> 152 seconds for me)
Tries a power on or off command
It fails with some combination of TimeoutError and CancelledError, and after I Ctrl-c the script I see a JSON parse error at character 0 happening on the line in the patch below.
With this patch, my long-lived script is happy - specifically I'm watching the Hue event stream for button-presses with aiohue bridge.subscribe(handler).
To reproduce, make a script that:
ping_hb()
has run at least once (> 152 seconds for me)It fails with some combination of
TimeoutError
andCancelledError
, and after I Ctrl-c the script I see a JSON parse error at character 0 happening on the line in the patch below.With this patch, my long-lived script is happy - specifically I'm watching the Hue event stream for button-presses with aiohue
bridge.subscribe(handler)
.