Lovelace switch toggle always shows 'off' for VeSync switches

I have a new Home Assistant setup with some VeSync switches. I can turn my switch on and off from the Lovelace interface, but after toggling to the ‘on’ position, it flips back to ‘off’ automatically after a few seconds (though the device remains on). If I want to turn it off, I have to toggle the switch to ‘on’ and toggle it back to ‘off’ fairly quickly.

As this is my first foray into Home Assistant, I don’t know if this is intended behavior or if it’s a quirk of VeSync integration. I expected that the state of the UI button would match the state of the physical switch.

This has been fixed in this PR - https://github.com/home-assistant/home-assistant/pull/24953.

You can use the custom component here until it is merged: