1
0
mirror of https://github.com/esphome/esphome.git synced 2025-07-09 08:33:11 +01:00
Commit Graph

197 Commits

Author SHA1 Message Date
16bf56b0f9 Fix running pre-commit on Windows () 2025-01-17 09:10:20 +13:00
f1c0570e3b [image] Transparency changes; code refactor () 2025-01-13 16:21:42 +13:00
731fb1d172 [spi] relay on KEY_TARGET_PLATFORM as the other platforms does () 2025-01-13 11:15:39 +13:00
9c8976be13 [CI] Update clang-tidy to 18.1.3 () 2024-12-03 11:29:45 +13:00
a3ef2ed7fd python lint for platform components () 2024-11-27 09:56:43 +13:00
4fbf41472a [CI] Add/update some system include paths () 2024-11-25 17:41:27 -06:00
a043022444 [font] Add support for "glyphsets" ()
Co-authored-by: clydebarrow <2366188+clydebarrow@users.noreply.github.com>
2024-10-31 16:36:23 +13:00
312799babf Update test_build_components ()
Co-authored-by: Clyde Stubbs <2366188+clydebarrow@users.noreply.github.com>
2024-10-14 14:31:37 +13:00
1cf4818640 [CI] Use a list when reading idedata for includes () 2024-10-04 21:07:49 +13:00
215f26fbe4 [CI] Remove `sorted` from library include dirs () 2024-10-02 13:08:12 +13:00
8148eae134 add windows script/setup.bat ()
Co-authored-by: Keith Burzinski <kbx81x@gmail.com>
2024-08-13 11:16:42 +12:00
f13cf1f7a0 adjust to new python pre-commit hooks ()
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
2024-08-12 16:52:09 +12:00
73f786c606 [code-quality] Organise script imports () 2024-08-06 22:46:37 -05:00
38c25dec93 [code-quality] More portable shebangs ()
Co-authored-by: Keith Burzinski <kbx81x@gmail.com>
2024-08-05 04:15:19 +00:00
894d81c577 [CI] Allow running specific target test(s) only () 2024-07-08 21:07:54 -05:00
83f9664efb [CI] Run all tests when a base test changes () 2024-07-02 14:06:33 +12:00
11b8e2e1af [core] Add script to extract actions, conditions, and pin_providers () 2024-06-24 23:43:30 -05:00
f6848fe24d [CI] Introduce testing for IDF 5 (and other arbitrary framework versions) ()
* Initial changes to support testing of additional framework versions

* Rename Arduino test files
2024-06-17 16:32:11 -05:00
761aae6f89 [CI] Allow clang-tidy to see IDF components ()
* Allow clang-tidy to see IDF components

* Remove camera, add tflite-micro
2024-06-13 05:15:38 -05:00
b401b5eca8 [CI] Update device class sync script for update entities () 2024-06-12 19:36:57 +12:00
13fabf1cd8 change to new 1-wire platform ()
Co-authored-by: Samuel Sieb <samuel@sieb.net>
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
2024-06-12 13:05:44 +12:00
05491e756b Avoid unsafe git error when container user and file config volume permissions don't match () 2024-06-04 13:34:47 +12:00
4469ba4024 [tests] make test_build_components work with venv without installing esphome () 2024-05-19 11:47:23 +12:00
70e0925f9a Fix pip3 install () 2024-05-19 11:31:36 +12:00
df838b5788 [core] Remove references to deleted setup.py () 2024-05-16 22:33:33 +12:00
f91c31f093 [core] Fix running pylint via pre-commit from GUI apps () 2024-05-16 13:47:56 +12:00
f2ef06d8b5 [core] Migrate to pyproject.toml () 2024-05-16 13:19:37 +12:00
d1758a46bd Use clang-apply-replacements when clang-apply-replacements-14 does not exist () 2024-05-07 07:17:03 +12:00
ccbf5148aa Set "CONF_" CI counter to fail on 3 or more definitions () 2024-05-05 00:32:47 -05:00
8334934e08 Allow platform dependencies () 2024-04-29 07:44:40 +12:00
a700ae481d Fix command line substitutions without any yaml substitutions () 2024-04-29 07:33:52 +12:00
3997503071 Remove text_sensor from sync-device-class job () 2024-04-26 11:03:24 +12:00
8ef7b41c91 Add datetime entities () 2024-04-26 09:19:54 +12:00
bcef64a6fa Add event, text_sensor and valve device classes to sync script () 2024-04-26 09:04:48 +12:00
c531a528f0 Event entity support ()
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
2024-04-24 14:35:26 +12:00
eb89d99999 Add valve component ()
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
2024-04-23 16:47:03 +12:00
45ae78de03 Create `component_dir` substitution for local files to be included in… () 2024-04-22 10:29:56 +12:00
76c5337987 Add support for time entities ()
* Add time entities

* Add tests

* Add myself to datetime codeowners

* Fix publishing times with 0 values

* Log performing TimeCall

* Implement `on_time` trigger

* Rename var

* Fix initial value for time

* Add arg name for clarity

* Remove useless checks
2024-04-08 20:46:35 -05:00
02632f0cad Fix NOLINT on inclusive-language check () 2024-04-03 15:16:38 +13:00
1148d41a66 Fix list-components when PR is not targeting dev () 2024-03-16 14:22:34 +13:00
1e96a19d09 Add datetime date entities ()
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
2024-03-11 07:52:22 +13:00
b5e633a2f3 Fix test_build_components for macOS sed () 2024-02-26 07:37:35 +13:00
07c3ee75e5 Bump black from 23.12.1 to 24.2.0 ()
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-02-21 15:53:50 +13:00
4d8b5edb1c Provide example devcontainer config for mdns and USB passthrough () 2024-02-21 10:49:59 +13:00
c6f528583b Proposal: Test yaml for each component ()
* Test for each component.

* When possible use commandline substitution.

* Add wildcard support.

* end file with new line.

* Move component tests into subfolder.

* Add component test to pipeline.

* Remove trailing whitespace.

* add restore python step.

* Add `. venv/bin/activate` to pipeline.

* step `changed-components` needs `common` step.

* start `list-components-changed.py` different.

* iterate on pipeline stage `list-components`.

* Update `checkout` action.

* Rename test folder from `tests` to `_test`.

* validate file exists.

* Move component test folder.

* extend list-components to include child components.

* File does not end with a newline

* Handle empty list-components matrix.

* list-components also check for changes in tests folder.

* Improve `list-components.py`.

* `*` is a forbidden character for filenames on windows.

---------

Co-authored-by: Your Name <you@example.com>
Co-authored-by: Keith Burzinski <kbx81x@gmail.com>
2024-01-18 01:13:40 -06:00
e39099137d update script/setup so it works fine on windows () 2024-01-15 11:08:10 +09:00
a2e152ad12 clang-format and clang-tidy scripts: More robust algorithm to find correct executable ()
* More robust algorithm to find correct executable

* Revise message wording

* Add clang-tidy and clang-format to requirements.txt.
Add to message explaining install process.

* Extracted get_binary to helpers.py. Use execptions for clean exit.

* Add parameter types

* clang-{tidy,format} in requirements_test.txt
clean up script exit

* Kill processes on ^C

* Move clang-tidy and clang-format into requirements_dev.txt
2024-01-02 23:00:52 -06:00
d2d0058386 Lint the script folder files () 2023-12-22 16:03:47 +09:00
1e77271858 Fix regex for 'byte' custom CI check () 2023-11-28 16:07:29 +13:00
91f1aa05ad Run all tests when local testing. () 2023-11-25 10:18:36 +11:00