2018-11-07 21:24:25 +01:00
|
|
|
import re
|
|
|
|
|
2021-10-29 12:50:12 +02:00
|
|
|
__version__ = "1.4.0"
|
2018-11-07 21:24:25 +01:00
|
|
|
|
2021-10-29 12:48:46 +02:00
|
|
|
ESP32_DEFAULT_OTA_DATA = "https://raw.githubusercontent.com/espressif/arduino-esp32/1.0.0/tools/partitions/boot_app0.bin"
|
|
|
|
ESP32_DEFAULT_BOOTLOADER_FORMAT = (
|
|
|
|
"https://raw.githubusercontent.com/espressif/arduino-esp32/"
|
|
|
|
"1.0.4/tools/sdk/bin/bootloader_$FLASH_MODE$_$FLASH_FREQ$.bin"
|
|
|
|
)
|
|
|
|
ESP32_DEFAULT_PARTITIONS = (
|
|
|
|
"https://raw.githubusercontent.com/esphome/esphomeflasher/main/partitions.bin"
|
|
|
|
)
|
2018-11-07 21:24:25 +01:00
|
|
|
|
|
|
|
# https://stackoverflow.com/a/3809435/8924614
|
2021-10-29 12:48:46 +02:00
|
|
|
HTTP_REGEX = re.compile(
|
|
|
|
r"https?://(www\.)?[-a-zA-Z0-9@:%._+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)"
|
|
|
|
)
|