mirror of
https://github.com/esphome/esphome.git
synced 2025-10-02 10:02:23 +01:00
Cleanup dashboard JS (#491)
* Cleanup dashboard JS * Add vscode * Save start_mark/end_mark * Updates * Updates * Remove need for cv.nameable It's a bit hacky but removes so much bloat from integrations * Add enum helper * Document APIs, and Improvements * Fixes * Fixes * Update PULL_REQUEST_TEMPLATE.md * Updates * Updates * Updates
This commit is contained in:
@@ -221,6 +221,8 @@ def perform_ota(sock, password, file_handle, filename):
|
||||
# Limit send buffer (usually around 100kB) in order to have progress bar
|
||||
# show the actual progress
|
||||
sock.setsockopt(socket.SOL_SOCKET, socket.SO_SNDBUF, 8192)
|
||||
# Set higher timeout during upload
|
||||
sock.settimeout(20.0)
|
||||
|
||||
offset = 0
|
||||
progress = ProgressBar()
|
||||
|
Reference in New Issue
Block a user