Appdaemon - Better vacuum cleaner controls

This commit is contained in:
2019-04-02 23:39:40 +02:00
parent 1c2a41cef3
commit dadf0735d1
7 changed files with 116 additions and 8 deletions

4
python_scripts/event.py Normal file
View File

@@ -0,0 +1,4 @@
ev = data.get('event', None)
ev_data = data.get('data', {})
if ev:
hass.bus.fire(ev, ev_data)