1 click upload command line with .bat file and Python virtual environment for latest beta release

What you can do is make a file called run.bat and just add "esphome 433_switch_control.yaml run || cmd /k" to it (without “”)
replace “433_switch_control” with whatever your .yam file are called and just place this file in the same folder as your .yam file just double click and it will run
and then make one more file for log

this have saved a lot of time for me

now to test the latest beta release without messing with your current install you can install it in a Python virtual environment

Installing in a Python virtual environment
C:…> py -m venv esphome_210121
C:…> cd esphome_210121
C:…> Scripts\activate.bat
C:…> pip install --pre -U esphome

this will make a Python virtual environment called esphome_210121 in your current path
I wont try to explain how it works because well I’m not a expert in either python or command line things and I would probably just mess it up… I’m just good at google and trial and error…

The .bat file for 1 click upload are a bit more complicated and well it took a lot of google help but this is what i ended up with "cd C:\Users\stefan\esphome_210121 && Scripts\activate.bat && cd %~dp0 && esphome 433_switch_control.yaml run || cmd /k"
C:\Users\stefan\esphome_210121 is the path to the virtual environment change to whatever you have

there is probably easier/better ways so make this but this have worked for me and might save a bit of time for someone

Aren’t there already buttons in the esphome UI?

yes if you are uploading from there, but I upload from my main computer, my home assistant server aren’t that fast and compile times are long…

It still has a UI.