mirror of
https://github.com/esphome/esphome.git
synced 2024-12-22 13:34:54 +01:00
Fix
This commit is contained in:
parent
418234c622
commit
1d9f4bfe24
2 changed files with 8 additions and 2 deletions
|
@ -8,7 +8,10 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|||
git \
|
||||
&& apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/*rm -rf /var/lib/apt/lists/* /tmp/* && \
|
||||
pip install --no-cache-dir --no-binary :all: platformio && \
|
||||
platformio settings set enable_telemetry No
|
||||
platformio settings set enable_telemetry No && \
|
||||
platformio settings set check_libraries_interval 1000000 && \
|
||||
platformio settings set check_platformio_interval 1000000 && \
|
||||
platformio settings set check_platforms_interval 1000000
|
||||
|
||||
COPY docker/platformio.ini /pio/platformio.ini
|
||||
RUN platformio run -d /pio; rm -rf /pio
|
||||
|
@ -16,4 +19,4 @@ RUN platformio run -d /pio; rm -rf /pio
|
|||
COPY requirements.txt /requirements.txt
|
||||
|
||||
RUN pip install --no-cache-dir -r /requirements.txt && \
|
||||
pip install --no-cache-dir tzlocal pillow
|
||||
pip install --no-cache-dir tzlocal
|
||||
|
|
|
@ -143,6 +143,9 @@ def replace_file_content(text, pattern, repl):
|
|||
|
||||
def migrate_src_version_0_to_1():
|
||||
main_cpp = CORE.relative_build_path('src', 'main.cpp')
|
||||
if not os.path.isfile(main_cpp):
|
||||
return
|
||||
|
||||
with codecs.open(main_cpp, 'r', encoding='utf-8') as f_handle:
|
||||
content = orig_content = f_handle.read()
|
||||
|
||||
|
|
Loading…
Reference in a new issue