Read this
","upvoteCount":0,"url":"https://github.com/custom-components/pyscript/discussions/752#discussioncomment-14217261"}}}-
|
I have a Shelly plus i4, and pressing a button will generate an event that I can catch with event_trigger. I get an old_state and an new_state. An example output of a new_state is shown below. My question is how do I get the value of event_type? |
Beta Was this translation helpful? Give feedback.
-
|
Doesn’t it get passed into your decorated handler as the |
Beta Was this translation helpful? Give feedback.
Read this