Mercurial > code > home > repos > homeauto
diff espNode/tasks.py @ 1716:2bed2f68243c
older work
author | drewp@bigasterisk.com |
---|---|
date | Sun, 07 Aug 2022 02:25:40 -0700 |
parents | 33747dcf57ea |
children | e9540ee0cf73 |
line wrap: on
line diff
--- a/espNode/tasks.py Thu May 05 00:05:27 2022 -0700 +++ b/espNode/tasks.py Sun Aug 07 02:25:40 2022 -0700 @@ -27,9 +27,15 @@ @task def program_board_over_wifi(ctx, board): + global esphome board = board.replace('.yaml', '') + if board == 'theater_lcd': + tag = 'esphome_dev' + esphome = 'esphome-local/env/bin/esphome' + ctx.run(f"{esphome} {board}.yaml run", pty=True) + @task def monitor_usb(ctx, board): board = board.replace('.yaml', '')