Commit Graph
100 Commits
Author SHA1 Message Date
14e38f0469 Upgrade clang-format to v13 (#4535)
* Upgrade clang-format to v13

* Apply clang-format-13 formatting changes

* Format

* Format bme_680

---------

Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
2023-03-20 03:38:41 +00:00
Oxan van LeeuwenandJesse Hills 7c91b4474a Revert storing Font glyphs in manually-allocated memory (#4516)
This partially reverts commit 62459a8ae1.
2023-03-09 15:47:57 +13:00
Oxan van LeeuwenandJesse Hills a4f21db272 Drop broken logging macros (#4534) 2023-03-09 15:47:57 +13:00
Oxan van LeeuwenandGitHub 801fbf44c5 Revert storing Font glyphs in manually-allocated memory (#4516)
This partially reverts commit 62459a8ae1.
2023-03-09 00:14:34 +00:00
Oxan van LeeuwenandGitHub ba1416cc0e Drop deprecated entity property base methods (#4539) 2023-03-09 00:08:45 +00:00
Oxan van LeeuwenandGitHub afc1c83af4 Mark unique_id() override as deprecated (#4538) 2023-03-09 00:06:20 +00:00
Oxan van LeeuwenandGitHub da056866ff Drop broken logging macros (#4534) 2023-03-09 00:03:33 +00:00
Oxan van LeeuwenandGitHub ceebe14628 Add ability to await safe mode in codegen (#4529)
* Add ability to await OTA safe mode

* Make pylint happy
2023-03-07 21:29:45 +00:00
Oxan van LeeuwenandGitHub b8538c2c12 Fix typo (#4515) 2023-03-05 23:02:36 +00:00
43fb68f8a0 Fix parallel invocations of repeat action (#4480)
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
2023-02-26 22:23:04 +00:00
Oxan van LeeuwenandGitHub 86c0e6114f Lock scheduler items while modifying them (#4410)
* Cosmetic fixes to scheduler code

* Add generic Mutex API

* Lock scheduler items while modifying them

* Always defer MQTT callbacks on Arduino
2023-02-26 18:43:08 +00:00
Oxan van LeeuwenandGitHub 9aed758d1b Automate syncing device classes with HA (#4438)
* Sync device classes with HA

* Rename blacklist
2023-02-16 00:28:12 +00:00
Oxan van LeeuwenandGitHub 5307dfee21 Initialize all fields in ESPTime in PCF85063 (#4439) 2023-02-14 22:45:27 +00:00
Oxan van LeeuwenandGitHub 499cb615f1 socket: Format IPv4-mapped IPv6 addresses as regular IPv4 address (#4382) 2023-02-09 18:17:45 +13:00
125c693e3f Add ESP32 variant config validator function (#3088)
* Add esp32_variant config validator function

* Drop unused is_esp32c3 function

Co-authored-by: Otto Winter <otto@otto-winter.com>
2022-02-19 11:41:34 +01:00
Oxan van LeeuwenandGitHub 976f5d91ed Logically group and document helper functions (#3112) 2022-01-27 20:35:42 +13:00
Oxan van LeeuwenandGitHub 6a2c58fcc0 Implement output button (#3109) 2022-01-25 09:30:48 +13:00
Oxan van LeeuwenandGitHub 4e6bdb31ac Make CallbackManager invocable (#3089) 2022-01-25 08:57:26 +13:00
80d03a631e Force braces around multi-line statements (#3094)
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
2022-01-25 08:56:36 +13:00
Oxan van LeeuwenandGitHub 2f46267994 Add cv.require_esphome_version helper (#3103) 2022-01-24 20:10:27 +01:00
cdda648360 Generate ARDUINO_VERSION_CODE in Python code (#3101)
Co-authored-by: Otto winter <otto@otto-winter.com>
2022-01-24 10:34:34 +01:00
Oxan van LeeuwenandGitHub f2d677d51a Fix path to extra_scripts in platformio.ini (#3093) 2022-01-24 16:03:34 +13:00
Oxan van LeeuwenandGitHub c2ee0f0864 Rename WEBSERVER_PORT define to USE_WEBSERVER_PORT (#3102) 2022-01-24 00:34:38 +01:00
2a84db7f85 Refactor fan platform to resemble climate/cover platforms (#2848)
Co-authored-by: Oxan van Leeuwen <oxan@oxanvanleeuwen.nl>
Co-authored-by: rob-deutsch <robzyb+altgithub@gmail.com>
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
2022-01-23 22:21:54 +13:00
97681d142e Enable readability-redundant-access-specifiers check (#3096)
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
2022-01-23 20:47:22 +13:00
b2430097f2 Enable readability-named-parameter check (#3098)
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
2022-01-23 20:39:07 +13:00
Oxan van LeeuwenandGitHub 7da12a878f Enable readability-redundant-member-init check (#3097) 2022-01-23 20:34:43 +13:00
Oxan van LeeuwenandGitHub a31700e16f Enable readability-qualified-auto check (#3095) 2022-01-23 20:29:58 +13:00
Oxan van LeeuwenandGitHub 7854522792 Enable readability-const-return-type check (#3099) 2022-01-23 20:28:00 +13:00
Oxan van LeeuwenandJesse Hills 869743a742 Fail hard if no random bytes available for encryption (#3067) 2022-01-18 15:49:31 +13:00
Oxan van LeeuwenandGitHub 737188ae50 Fail hard if no random bytes available for encryption (#3067) 2022-01-18 14:29:57 +13:00
Oxan van LeeuwenandJesse Hills c5eba04517 Remove deprecated attribute from virtual entity methods (#3056) 2022-01-17 12:40:07 +13:00
Oxan van LeeuwenandJesse Hills 282313ab52 Rename post_build scripts to fix codeowners script (#3057) 2022-01-17 12:40:07 +13:00
Oxan van LeeuwenandGitHub 09402fdb22 Fix argument order in gitpod config file (#3058) 2022-01-16 23:40:27 +01:00
Oxan van LeeuwenandGitHub 89e7448007 Remove deprecated attribute from virtual entity methods (#3056) 2022-01-16 23:40:15 +01:00
Oxan van LeeuwenandGitHub f44fca0a4b Rename post_build scripts to fix codeowners script (#3057) 2022-01-17 11:15:11 +13:00
Oxan van LeeuwenandGitHub d9c938de33 Introduce big- and little-endian integer types (#2997) 2022-01-12 16:50:03 +13:00
Oxan van LeeuwenandGitHub 073828235f Deprecate virtual methods to set entity properties (#3021) 2022-01-10 13:32:39 +01:00
Oxan van LeeuwenandGitHub 6383eca54a Clean-up random helper functions (#3022) 2022-01-10 13:50:26 +13:00
Oxan van LeeuwenandGitHub 499625f266 Convert is_callable to a backport of std::is_invocable (#3023) 2022-01-10 11:07:37 +13:00
Oxan van LeeuwenandGitHub e62c3e00c1 Bump PlatformIO to 5.2.4 and zeroconf to 0.37.0 (#3007) 2022-01-06 16:36:23 +01:00
Oxan van LeeuwenandGitHub 07e790f900 Drop uint{32,64}_to_string() helper functions (#3009) 2022-01-06 16:36:11 +01:00
Oxan van LeeuwenandGitHub 640142fc0c Introduce str_lower_case() and str_upper_case() helpers (#3008) 2022-01-06 16:35:59 +01:00
Oxan van LeeuwenandGitHub 5c339d4597 Convert clamp() helper to backport of std::clamp() (#3010) 2022-01-07 00:56:10 +13:00
Oxan van LeeuwenandGitHub a4931f5d78 Clean-up reverse_bits helpers (#3011) 2022-01-07 00:54:58 +13:00
Oxan van LeeuwenandGitHub d8e719d1c4 Support clang-tidy for ESP32 variants (#3001) 2022-01-05 21:30:15 +01:00
Oxan van LeeuwenandGitHub ffea3597f4 Set correct include_dir in platformio.ini (#2999) 2022-01-04 21:59:34 +01:00
Oxan van LeeuwenandGitHub 193d3e0206 Fix clang-tidy with multiple ESP32 toolchains installed (#2998) 2022-01-05 08:34:17 +13:00
Oxan van LeeuwenandGitHub e5775cf812 Introduce bit_cast() backport (#2991) 2022-01-04 10:14:57 +01:00
Oxan van LeeuwenandGitHub 5143a5b5c5 Use to_string() from STL when available (#2992) 2022-01-03 23:30:03 +01:00
Oxan van LeeuwenandGitHub dbc2812022 Improve PSRAM support (#2884) 2022-01-04 10:35:15 +13:00
Oxan van LeeuwenandJesse Hills 9471df0a1b Fix MQTT button press action (#2917) 2021-12-21 08:24:07 +13:00
Oxan van LeeuwenandJesse Hills 6d39f64be7 Don't disable idle task WDT when it's not enabled (#2856) 2021-12-21 08:24:07 +13:00
Oxan van LeeuwenandGitHub 4907e6f6d7 Fix MQTT button press action (#2917) 2021-12-21 08:19:20 +13:00
Oxan van LeeuwenandJesse Hills e32a999cd0 Set text sensor state property to filter output (#2893) 2021-12-15 14:57:32 +13:00
Oxan van LeeuwenandGitHub b3fb35783e Set text sensor state property to filter output (#2893) 2021-12-13 15:21:09 +13:00
Oxan van LeeuwenandGitHub beeb0c7c5a Introduce hex parsing & formatting helper functions (#2882) 2021-12-13 09:15:23 +13:00
Oxan van LeeuwenandGitHub 6df1d5222d Drop unused xSemaphoreWait define (#2888) 2021-12-08 12:46:36 +13:00
Oxan van LeeuwenandGitHub 6fe4ff7f85 Drop len parameter from parse_number() (#2883) 2021-12-08 08:46:25 +13:00
Oxan van LeeuwenandJesse Hills df315a1f51 Feed watchdog when no component loops (#2857) 2021-12-07 07:47:48 +13:00
Oxan van LeeuwenandJesse Hills 56870ed4a8 Fix MCP23x17 not disabling pullup after config change (#2855) 2021-12-07 07:47:48 +13:00
Oxan van LeeuwenandGitHub 12467a18e6 Feed watchdog when no component loops (#2857) 2021-12-07 07:24:20 +13:00
Oxan van LeeuwenandGitHub ffc112c9d0 Don't disable idle task WDT when it's not enabled (#2856) 2021-12-06 20:01:14 +13:00
Oxan van LeeuwenandGitHub d3e48e296f Fix MCP23x17 not disabling pullup after config change (#2855) 2021-12-06 19:59:50 +13:00
Oxan van LeeuwenandJesse Hills 9dcd3d18a0 Update ota_component.cpp (#2852) 2021-12-03 07:54:34 +13:00
Oxan van LeeuwenandGitHub 40c017fd54 Update ota_component.cpp (#2852) 2021-12-03 07:52:56 +13:00
Oxan van LeeuwenandGitHub 54106179a1 Set ESP32 watchdog to loop task (#2846) 2021-12-02 09:05:42 +13:00
Oxan van LeeuwenandGitHub 607601b3a4 Enable a bunch of clang-tidy checks (#2149) 2021-12-02 09:03:51 +13:00
Oxan van LeeuwenandGitHub f58828cb82 Support setting manual_ip under networks option (#2839) 2021-12-02 08:55:27 +13:00
Oxan van LeeuwenandGitHub fbe1bca1b9 Fix compilation using subprocesses (#2834) 2021-12-01 17:37:24 +01:00
Oxan van LeeuwenandGitHub ca8db7696e Don't enable namespace comment clang-tidy check twice (#2830) 2021-12-01 17:21:19 +13:00
Oxan van LeeuwenandGitHub c9190574a9 Fix CI check for Windows line endings (#2831) 2021-12-01 17:14:25 +13:00
Oxan van LeeuwenandGitHub bfeb0b3639 Add problem matcher for Python formatting errors (#2833) 2021-12-01 17:12:14 +13:00
Oxan van LeeuwenandGitHub cbc1334b8d Fix compile warning in Tuya automations (#2837) 2021-12-01 17:11:21 +13:00
Oxan van LeeuwenandGitHub ab027a6ae2 Fix too-broad matcher for custom CI script (#2829) 2021-11-30 09:35:52 +01:00
3d5e1d8d91 Fix parsing of multiple values in EZO sensor (#2814)
Co-authored-by: Lydia Sevelt <LydiaSevelt@gmail.com>
2021-11-29 10:18:48 +13:00
Oxan van LeeuwenandJesse Hills db2128a344 Fix parsing numbers in Anova (#2816) 2021-11-29 10:18:48 +13:00
2b50406856 Fix parsing of multiple values in EZO sensor (#2814)
Co-authored-by: Lydia Sevelt <LydiaSevelt@gmail.com>
2021-11-29 08:02:10 +13:00
Oxan van LeeuwenandGitHub 10a2a7e0fc Fix parsing numbers in Anova (#2816) 2021-11-29 08:00:29 +13:00
Oxan van LeeuwenandGitHub 7a564b222d Make clang-tidy suggest stdint.h int types (#2820) 2021-11-29 07:59:30 +13:00
Oxan van LeeuwenandGitHub 5946c37925 Fix usage of deprecated climate method in anova (#2801) 2021-11-26 09:16:39 +01:00
Oxan van LeeuwenandGitHub 00965fe19e Consistently format errors in CI scripts (#2762) 2021-11-26 09:54:11 +13:00
Oxan van LeeuwenandGitHub 9681dfb458 Correct constant for dynamic I2S bus in NeoPixelBus (#2797) 2021-11-26 09:37:27 +13:00
Oxan van LeeuwenandGitHub 5e631bc6ba Only match GCC warnings from ESPHome source files in CI (#2756) 2021-11-26 09:36:42 +13:00
Oxan van LeeuwenandGitHub b5f660398c Add map filter for text sensors (#2761) 2021-11-26 09:35:33 +13:00
Oxan van LeeuwenandGitHub d50bdf619f Cache virtualenv instead of pip cache between CI runs (#2759) 2021-11-26 09:29:10 +13:00
Oxan van LeeuwenandGitHub 4e448b21ff Drop obsolete comment from CI workflow file (#2758) 2021-11-26 09:27:53 +13:00
Oxan van LeeuwenandGitHub 2a78c2970d Fix CI cache key for test3.yaml compile (#2757) 2021-11-26 09:27:34 +13:00
Oxan van LeeuwenandJesse Hills 8e1c9f5042 Fix parsing numbers from null-terminated buffers (#2755) 2021-11-26 09:02:54 +13:00
Oxan van LeeuwenandGitHub 3637be251e Fix parsing numbers from null-terminated buffers (#2755) 2021-11-26 09:00:49 +13:00
Oxan van LeeuwenandGitHub 897277992b Introduce str_snprintf helper function (#2780) 2021-11-23 20:30:49 +13:00
Oxan van LeeuwenandGitHub 5404163be0 Clean-up MAC address helpers (#2713) 2021-11-15 15:48:16 +01:00
Oxan van LeeuwenandJesse Hills f4a140e126 Feed WDT between doing ESP32 touchpad measurements (#2720) 2021-11-15 11:03:39 +13:00
Oxan van LeeuwenandJesse Hills ab506b09fe Restore InterruptLock on wifi-less ESP8266 (#2712) 2021-11-15 11:03:39 +13:00
Oxan van LeeuwenandGitHub 04740fbcbb Install test requirements in lint Docker image (#2719) 2021-11-15 10:04:43 +13:00
Oxan van LeeuwenandGitHub 6a7440f7d3 Feed WDT between doing ESP32 touchpad measurements (#2720) 2021-11-15 09:45:25 +13:00
Oxan van LeeuwenandGitHub 14299bb2cc Drop unused constants from const.py (#2718) 2021-11-15 08:07:58 +13:00
Oxan van LeeuwenandGitHub 66cebfc992 Restore InterruptLock on wifi-less ESP8266 (#2712) 2021-11-15 08:05:11 +13:00
Oxan van LeeuwenandJesse Hills b4cd8d21a5 Enable addressable light power supply based on raw values (#2690) 2021-11-11 12:25:41 +13:00
Oxan van LeeuwenandGitHub bb9793d5b7 Enable addressable light power supply based on raw values (#2690) 2021-11-11 11:53:25 +13:00