Invalid config for [automation]: required key not provided @ data['action']

Ok, after more digging I found the problem… when I moved the code into a package, I left previous automation keyword in configuration.yaml. After removing it, everything started to work.

Thanks for help all.