Daniel Lashua

Results 50 comments of Daniel Lashua

@raetha excellent! I didn't realize the other methods automatically reconnected, so, TIL. I'll pull your new code now and see if it keep me from having to manually restart every...

@raetha I made it 10 days, which is a vast improvement from before. But, finally, today, both instances of wyze2mqtt that I run were no longer connected to MQTT, yet...

I have two instances of wyzesense2mqtt running. One runs in docker on a host called "iceman". In that same docker I run mosquitto, zigbee2mqtt, and homeassistant, which all use MQTT....

For further diagnosis here are my complete logs from one host just before the outage until just after (though, possibly this needs a new thread as I'm not sure it's...

This is a side effect of the way function definitions work in pyscript. Under `def inner` you can try adding `nonlocal value`. I've had some luck with this.

I have tested this myself (and every variation I can think of). It is indeed broken. Hopefully @craigbarratt can fix it.

It it too difficult to use your particular test case (imports, date changes, etc). However, I'm pretty sure you need native python functions for filter to work as expected. try...

Perhaps, when a context is reloaded/destroyed, all of the variables in that context could be iterated and explicitly `del`ed. Another solution (not for object destruction in general, but for handling...

It's also worth noting that returning the trigger functions doesn't clean up the mess either: test_helpers.py ```python class NoisyThing: def __init__(self, name): log.info(f'starting NoisyThing {name}') self.name = name self.counter =...

I feel like the documentation in the [logging section](https://hacs-pyscript.readthedocs.io/en/stable/reference.html?highlight=logging#logging) covers this pretty well.