If you have the Flic Hub, you can just configure your buttons to perform Internet Requests (POST) to the Home Assistant REST API, to call specific services (like /api/services/light/toggle) or scripts which you can then customise in the HA UI.
In fact, this is what I am now switching to as flicd and the HA flic integration are wholly unreliable and even have a bug that causes HA to push my server’s load average above 100 and trip a reboot by the load watchdog. (flicd loses the USB BT adapter, at which point HA’s flic integration goes into a loop trying to get button information, eventually crashing the system.)