Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
808ce6e
commit a78eff6
Showing
553 changed files
with
27,780 additions
and
14,199 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,47 @@ | ||
## Description: | ||
# What does this implement/fix? | ||
|
||
Quick description | ||
|
||
**Related issue (if applicable):** fixes <link to issue> | ||
## Types of changes | ||
|
||
- [ ] Bugfix (non-breaking change which fixes an issue) | ||
- [ ] New feature (non-breaking change which adds functionality) | ||
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) | ||
- [ ] Configuration change (this will require users to update their yaml configuration files to keep working) | ||
|
||
**Related issue or feature (if applicable):** fixes <link to issue> | ||
|
||
**Pull request in [esphome-docs](https://github.com/esphome/esphome-docs) with documentation (if applicable):** esphome/esphome-docs#<esphome-docs PR number goes here> | ||
|
||
# Test Environment | ||
|
||
- [ ] ESP32 | ||
- [ ] ESP8266 | ||
- [ ] Windows | ||
- [ ] Mac OS | ||
- [ ] Linux | ||
|
||
## Example entry for `config.yaml`: | ||
<!-- | ||
Supplying a configuration snippet, makes it easier for a maintainer to test | ||
your PR. Furthermore, for new integrations, it gives an impression of how | ||
the configuration would look like. | ||
Note: Remove this section if this PR does not have an example entry. | ||
--> | ||
|
||
```yaml | ||
# Example config.yaml | ||
|
||
``` | ||
|
||
# Explain your changes | ||
|
||
Describe your changes here to communicate to the maintainers **why we should accept this pull request**. | ||
Very important to fill if no issue linked | ||
|
||
## Checklist: | ||
- [ ] The code change is tested and works locally. | ||
- [ ] Tests have been added to verify that the new code works (under `tests/` folder). | ||
|
||
If user exposed functionality or configuration variables are added/changed: | ||
- [ ] Documentation added/updated in [esphome-docs](https://github.com/esphome/esphome-docs). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,27 @@ | ||
# See https://pre-commit.com for more information | ||
# See https://pre-commit.com/hooks.html for more hooks | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v2.4.0 | ||
- repo: https://github.com/ambv/black | ||
rev: 20.8b1 | ||
hooks: | ||
- id: trailing-whitespace | ||
- id: end-of-file-fixer | ||
- id: check-yaml | ||
- id: check-added-large-files | ||
- id: flake8 | ||
- id: black | ||
args: | ||
- --safe | ||
- --quiet | ||
files: ^((esphome|script|tests)/.+)?[^/]+\.py$ | ||
- repo: https://gitlab.com/pycqa/flake8 | ||
rev: 3.8.4 | ||
hooks: | ||
- id: flake8 | ||
additional_dependencies: | ||
- flake8-docstrings==1.5.0 | ||
- pydocstyle==5.1.1 | ||
files: ^(esphome|tests)/.+\.py$ | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v3.4.0 | ||
hooks: | ||
- id: no-commit-to-branch | ||
args: | ||
- --branch=dev | ||
- --branch=master | ||
- --branch=beta |
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM esphome/esphome-base-amd64:2.6.0 | ||
FROM esphome/esphome-base-amd64:3.0.0 | ||
|
||
COPY . . | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
FROM esphome/esphome-lint-base:2.6.0 | ||
FROM esphome/esphome-lint-base:3.0.0 | ||
|
||
COPY requirements.txt requirements_test.txt / | ||
RUN pip3 install --no-cache-dir -r /requirements.txt -r /requirements_test.txt | ||
COPY requirements.txt requirements_test.txt docker/platformio_install_deps.py platformio.ini / | ||
RUN \ | ||
pip3 install --no-cache-dir -r /requirements.txt -r /requirements_test.txt \ | ||
&& /platformio_install_deps.py /platformio.ini | ||
|
||
VOLUME ["/esphome"] | ||
WORKDIR /esphome |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/usr/bin/env python3 | ||
# This script is used in the docker containers to preinstall | ||
# all platformio libraries in the global storage | ||
|
||
import configparser | ||
import re | ||
import subprocess | ||
import sys | ||
|
||
config = configparser.ConfigParser() | ||
config.read(sys.argv[1]) | ||
libs = [] | ||
for line in config['common']['lib_deps'].splitlines(): | ||
# Format: '1655@1.0.2 ; TinyGPSPlus (has name conflict)' (includes comment) | ||
m = re.search(r'([a-zA-Z0-9-_/]+@[0-9\.]+)', line) | ||
if m is None: | ||
continue | ||
libs.append(m.group(1)) | ||
|
||
subprocess.check_call(['platformio', 'lib', '-g', 'install', *libs]) |
Oops, something went wrong.