mirror of
https://github.com/fmtr/haco.git
synced 2026-12-04 05:40:10 -05:00
8 lines
188 B
Python
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
|