Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix update on cert_expiry startup #27137
Cert Expiry sensors are now updated when the entities are created if home assistant is running or at home assistant start if home assistant is not running yet.
Import of config yaml is delayed and done at home assistant start, to avoid issues with checking certificate served by home assistant.
Related issue (if applicable): may fix #26740
I'm guessing the receiving server didn't like to accept multiple connections from the same source in quick succession, rejecting the new connections and causing the entity to fall into a bad state. It sounds like they updated fine at the next 12 hour update.
Yeah. Let's create the entity as available and remove the update during entity addition. Keep the update on home assistant start.
The entity will then be created with unknown state. When the first update happens, either on home assistant start or 12 hours after creating the entity, the entity will get correct state.
I guess we could add some more complex logic in