haco/haco/configs/demo.py
2023-08-30 16:43:34 +01:00

8 lines
188 B
Python

from haco import Button, Tasmota
restart = Button('Restart Tasmota', icon='mdi:restart')
@restart.callback()
def ha(value) -> Tasmota[str, 'tasmota.cmd("restart 1")']:
return value