Keep the ESPHome integration in Home Assistant updated to a recent version.
SLWF-08 HDMI-CEC controller for ESPHome and Home Assistant
Hold FLH (“flash”) button and then connect USB-C to computer