mark_write_pending's settle window was dropping every update for a just-written href, including the coordinator's own post-write refresh, because nothing ever wrote the optimistic value into the cache for it to protect. The write reflected on the device immediately but reverted in HA until the next 30s summary sweep.