This works properly. It creates a single Device with two entities, action and battery for each Flic button it knows of.
Initial version. Creates individual action and battery entities in HA properly, but won't link them to the Device that it also creates.