Closed bakerkj closed 8 months ago
Interesting. I'm still on 2023.8, so I've got some upgrading to do. This integration hasn't changed in a while, but it looks like there have been some changes to how HA Core handles shutdown. As far as I can tell locally, it's generally been able to close the server quickly on my instance. I'll upgrade my local install and see if I can repro. If not, I'll see about adding some more logging at least.
Well, I can repro in my actual home assistant instance, but not in the dev container that I use to develop this integration. So that's fun.
It looks like the reason this is appearing now is that the behavior of Server.wait_closed
changed in Python 3.12 (https://github.com/python/cpython/issues/79033), so it's exposing a bug in the shutdown order in greeneye_monitor
. Working to figure that out now.
@jkeljo thanks for the fix!
Describe the bug
This custom component seems to blocks/delays a clean restart of Home Assistant. I don't think this happened in
2024.1.x
, I skipped2024.2.0
and it does appear to happen in2024.2.1
.On restart I see these warnings:
Diagnostics
I'll grab these shortly.