Closed luup2k closed 3 years ago
Hello @luup2k,
currently get_triggers
only support strings (state names). But you are right, the documentation mentions 'states' and not state names. In 6c202d6, I added a check to convert states and enums (both share the same behaviour in that regard) to state_names. This should be enough to allow get_triggers
to also handle enums and states correctly.
From readme.md example to use enums, i don't know if this behavior is intentional...
As you can see we need to send enum.name to get_triggers to get the transitions due nature of comparision: