Smartthings button through ha integration

I’m trying to get Appdaemon to run this code that worked before I updated.

self.listen_event(self.LightOnButtonPress, event_type=self.args["switch"], value="pushed", name="Second Button", action="tap_action", device="tap_device")

the only result is that I get an error now which is kinda sad because I’ve had it working earlier so I’d like to know what I did wrong here.

the error massage is this:

 WARNING LivingRoomBTN: Traceback (most recent call last):
  File "/usr/lib/python3.8/site-packages/appdaemon/app_management.py", line 150, in initialize_app
    await utils.run_in_executor(self, init)
  File "/usr/lib/python3.8/site-packages/appdaemon/utils.py", line 290, in run_in_executor
    response = future.result()
  File "/usr/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/appdaemon/apps/LightBtn.py", line 11, in initialize
    self.listen_event(self.LightOnButtonPress, event_type=self.args["switch"], value="pushed", name="Second Button", action="tap_action", device="tap_device")
  File "/usr/lib/python3.8/site-packages/appdaemon/utils.py", line 195, in inner_sync_wrapper
    f = run_coroutine_threadsafe(self, coro(self, *args, **kwargs))
  File "/usr/lib/python3.8/site-packages/appdaemon/utils.py", line 299, in run_coroutine_threadsafe
    result = future.result(self.AD.internal_function_timeout)
  File "/usr/lib/python3.8/concurrent/futures/_base.py", line 439, in result
    return self.__get_result()
  File "/usr/lib/python3.8/concurrent/futures/_base.py", line 388, in __get_result
    raise self._exception
  File "/usr/lib/python3.8/site-packages/appdaemon/adapi.py", line 1713, in listen_event
    return await self.AD.events.add_event_callback(_name, namespace, callback, event, **kwargs)
TypeError: add_event_callback() got multiple values for argument 'name'

so anyone who can point me in the right direction for changing this in the correct manner ?

Well I made a automation in Home assistant without the Appdaemon and got the button to work without any issues.
So I figured I would start to go through the Appdaemon code to see if I’m way off.
to my very rusty eye it looks like Appdaemon has an internal name variable that Appdaemon confuses with the smartthings api name somehow which is why I get the last error message.

TypeError: add_event_callback() got multiple values for argument 'name'

I don’t know how to fix this as it seems a issue inside Appdaemon.
So for now I’m closing up and just go with the Home assistant automation module on all my smartthings.button luckily it is only two I have…