I reverted to the older appdaemon version and tried the test code: runs. I think it is a bug so I opened a ticket in github
https://github.com/hassio-addons/addon-appdaemon/issues/391