Setting "homeassistant: true" in Z2M config causes weird issue with EnOcean switch

Hi all,

Whenever I set “homeassistant: true” in Z2M to enable discovery I get a strange issue with my EnOcean PTM 215Z switch.

Pressing and holding the button with “homeassistant: false” gives the following output in Z2M, until I release the button:

    "linkquality": 40,
    "action": "pressed_1"

However when I press the button with “homeassistant: true” the value of “action” is lost directly after pressing the button. Even if I’m still holding the button.

Why does “homeassistant: true” cause this behaviour?

Thanks in advance!