HomeKit climate keeps bouncing modes, flickering

Does anyone else have this problem? I’ve exposed a climate entity to HomeKit, and often when you change the mode, it keeps flipping between all the modes over and over again (off to cool, cool to off, off to auto, auto to cool, etc.).

I see from the Logbook and the events table in the database that it’s HomeKit that’s originating these repeated commands, but I don’t know if something from HA is causing it to do that. e.g. HomeKit send command set_hvac_mode to TargetHeatingCoolingState to 0 for Garage AC

Eventually, my HVAC gives up and shuts itself off after receiving so many alternating commands.