Jesse Hills and Jonathan Swoboda
792e1ff304
[i2c] Add basic host platform support ( #14489 )
...
Co-authored-by: Jonathan Swoboda <154711427+swoboda1337@users.noreply.github.com >
2026-06-03 07:12:50 +12:00
J. Nick Koston
59c1368440
[i2c] Fix RP2040 I2C bus selection based on pin assignment ( #14745 )
2026-03-12 14:53:46 -10:00
dependabot[bot] and J. Nick Koston
4d05cd3059
Bump ruff from 0.14.14 to 0.15.0 ( #13752 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: J. Nick Koston <nick@home-assistant.io >
2026-02-04 09:24:05 +00:00
John Hollowell
0a0501c140
Fix comment typos ( #12828 )
2026-01-03 17:11:48 -05:00
Jonathan Swoboda and Claude
918bc4b74f
[esp32] Remove remaining using_esp_idf checks ( #12623 )
...
Co-authored-by: Claude <noreply@anthropic.com >
2025-12-22 15:41:14 -05:00
Jonathan Swoboda and Claude
84b5d9b21c
[core] Remove deprecated config options from before 2025 ( #12622 )
...
Co-authored-by: Claude <noreply@anthropic.com >
2025-12-22 14:00:12 -05:00
Thomas Rupprecht and Jonathan Swoboda
56c1691d72
[pca9685,sx126x,sx127x] Use frequency/float_range check ( #12490 )
...
Co-authored-by: Jonathan Swoboda <154711427+swoboda1337@users.noreply.github.com >
2025-12-16 22:52:28 -05:00
7a20c85eec
[i2c] Fix port logic with ESP-IDF ( #12063 )
...
Co-authored-by: Jonathan Swoboda <154711427+swoboda1337@users.noreply.github.com >
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2025-12-08 14:12:15 -05:00
Jonathan Swoboda
d7a197b3a3
[esp32] Use the IDF I2C implementation on Arduino ( #12076 )
2025-11-24 12:27:09 -05:00
06d0787ee0
[nrf52, i2c] i2c support for nrf52 ( #8150 )
...
Co-authored-by: Jonathan Swoboda <154711427+swoboda1337@users.noreply.github.com >
Co-authored-by: Ludovic BOUÉ <lboue@users.noreply.github.com >
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2025-11-03 16:42:49 +00:00
J. Nick Koston
d1276dc6df
[core] Replace magic coroutine priority numbers with self-documenting CoroPriority enum ( #10518 )
2025-09-02 21:41:50 +00:00
Clyde Stubbs and Jesse Hills
c171d13c8c
[i2c] Perform register reads as single transactions ( #10389 )
...
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
2025-08-27 19:30:33 +10:00
J. Nick Koston
440de12e3f
Don't compile unnecessary platform files (e.g. ESP8266 files on ESP32) ( #9354 )
2025-07-08 09:04:41 +12:00
Jesse Hills
98e106e0ae
[pins] Update `internal_gpio_pin_number to work directly like internal_gpio_output_pin_number` ( #9270 )
2025-07-01 08:09:11 +12:00
Jonathan Swoboda
52ca8deb10
[i2c] Disable i2c scan on certain idf versions ( #9237 )
2025-06-28 13:32:18 +12:00
Jesse Hills
d527398dae
[i2c] Expose internal i2c bus port number ( #9136 )
2025-06-18 20:50:47 -05:00
tomaszduda23
e754d0a58b
[i2c] python code style ( #8311 )
2025-02-25 16:10:49 +13:00
tracestep and Jesse Hills
5441213b27
Adds i2c timeout config ( #4614 )
...
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
2024-04-09 13:11:46 +12:00
Clyde Stubbs
d9792b0d92
Checks for pins used in multiple places ( #5666 )
2023-12-05 08:56:53 +09:00
Jesse Hills
46be886ca6
Use platform consts ( #5508 )
2023-10-09 16:54:15 -05:00
a9630ac847
Support for LibreTiny platform (RTL8710, BK7231 & other modules) ( #3509 )
...
Co-authored-by: Kuba Szczodrzyński <kuba@szczodrzynski.pl >
Co-authored-by: Sam Neirinck <git@samneirinck.com >
Co-authored-by: David Buezas <dbuezas@users.noreply.github.com >
Co-authored-by: Stroe Andrei Catalin <catalin2402@gmail.com >
Co-authored-by: Sam Neirinck <github@samneirinck.be >
Co-authored-by: Péter Sárközi <xmisterhu@gmail.com >
Co-authored-by: Hajo Noerenberg <hn@users.noreply.github.com >
2023-09-05 10:16:08 +12:00
Jesse Hills and MrEditor97
d546ef941f
Add final validate for i2c with mix/max frequency ( #3727 )
...
Co-authored-by: MrEditor97 <mr.samuel.hughes@gmail.com >
2022-08-18 11:04:50 +12:00
Otto Winter and Jesse Hills
ac0d921413
ESP-IDF support and generic target platforms ( #2303 )
...
* Socket refactor and SSL
* esp-idf temp
* Fixes
* Echo component and noise
* Add noise API transport support
* Updates
* ESP-IDF
* Complete
* Fixes
* Fixes
* Versions update
* New i2c APIs
* Complete i2c refactor
* SPI migration
* Revert ESP Preferences migration, too complex for now
* OTA support
* Remove echo again
* Remove ssl again
* GPIOFlags updates
* Rename esphal and ICACHE_RAM_ATTR
* Make ESP32 arduino compilable again
* Fix GPIO flags
* Complete pin registry refactor and fixes
* Fixes to make test1 compile
* Remove sdkconfig file
* Ignore sdkconfig file
* Fixes in reviewing
* Make test2 compile
* Make test4 compile
* Make test5 compile
* Run clang-format
* Fix lint errors
* Use esp-idf APIs instead of btStart
* Another round of fixes
* Start implementing ESP8266
* Make test3 compile
* Guard esp8266 code
* Lint
* Reformat
* Fixes
* Fixes v2
* more fixes
* ESP-IDF tidy target
* Convert ARDUINO_ARCH_ESPxx
* Update WiFiSignalSensor
* Update time ifdefs
* OTA needs millis from hal
* RestartSwitch needs delay from hal
* ESP-IDF Uart
* Fix OTA blank password
* Allow setting sdkconfig
* Fix idf partitions and allow setting sdkconfig from yaml
* Re-add read/write compat APIs and fix esp8266 uart
* Fix esp8266 store log strings in flash
* Fix ESP32 arduino preferences not initialized
* Update ifdefs
* Change how sdkconfig change is detected
* Add checks to ci-custom and fix them
* Run clang-format
* Add esp-idf clang-tidy target and fix errors
* Fixes from clang-tidy idf round 2
* Fixes from compiling tests with esp-idf
* Run clang-format
* Switch test5.yaml to esp-idf
* Implement ESP8266 Preferences
* Lint
* Re-do PIO package version selection a bit
* Fix arduinoespressif32 package version
* Fix unit tests
* Lint
* Lint fixes
* Fix readv/writev not defined
* Fix graphing component
* Re-add all old options from core/config.py
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
2021-09-20 11:47:51 +02:00
aebad04c0b
Convert core components to async-def coroutine syntax ( #1658 )
...
Co-authored-by: Guillermo Ruffino <glm.net@gmail.com >
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
2021-05-23 22:10:30 +02:00
9e23987db8
Add I2CMultiplexer in generel and the TCA9548A in special ( #1410 )
...
* Added I2CMultiplexer in generel and the TCA9548A in special
* cleanup
* tidy
* tidy
* tidy
* tidy
* Update CODEOWNERS
* Update CODEOWNERS
* added CODEOWNERS
* Fix CODEOWNERS
* protected function
* fixed scan
* fixed style
* added to test1.yaml
* Update esphome/components/tca9548a/__init__.py
* Update esphome/components/i2c/__init__.py
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
* Update esphome/components/i2c/i2c.cpp
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
* Update esphome/components/i2c/__init__.py
* Update esphome/components/i2c/__init__.py
Co-authored-by: Guillermo Ruffino <glm.net@gmail.com >
* Update esphome/components/i2c/i2c.cpp
Co-authored-by: Guillermo Ruffino <glm.net@gmail.com >
* added define statements for I2C Multiplexer
* fix
* try to tidy
* bug fix
* tidy
* override fix
* only change channel if different
* tidy
* added test
* testfix
* added defines
* tidy
* fix dep
* like recommended
Co-authored-by: Andreas Hergert <andreas.hergert@otrs.com >
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
Co-authored-by: Guillermo Ruffino <glm.net@gmail.com >
2021-03-29 16:50:30 -03:00
Guillermo Ruffino
69879920eb
add-black ( #1593 )
...
* Add black
Update pre commit
Update pre commit
add empty line
* Format with black
2021-03-07 16:03:16 -03:00
Otto Winter
4996967c79
Add CODEOWNERS mechanism ( #1199 )
2020-07-25 15:57:18 +02:00
Otto Winter
766f6c045d
Updates
2019-04-24 23:49:02 +02:00
Otto Winter
8e75980ebd
Cleanup dashboard JS ( #491 )
...
* Cleanup dashboard JS
* Add vscode
* Save start_mark/end_mark
* Updates
* Updates
* Remove need for cv.nameable
It's a bit hacky but removes so much bloat from integrations
* Add enum helper
* Document APIs, and Improvements
* Fixes
* Fixes
* Update PULL_REQUEST_TEMPLATE.md
* Updates
* Updates
* Updates
2019-04-22 21:56:30 +02:00
Otto Winter
6682c43dfa
🏗 Merge C++ into python codebase ( #504 )
...
## Description:
Move esphome-core codebase into esphome (and a bunch of other refactors). See https://github.com/esphome/feature-requests/issues/97
Yes this is a shit ton of work and no there's no way to automate it :( But it will be worth it 👍
Progress:
- Core support (file copy etc): 80%
- Base Abstractions (light, switch): ~50%
- Integrations: ~10%
- Working? Yes, (but only with ported components).
Other refactors:
- Moves all codegen related stuff into a single class: `esphome.codegen` (imported as `cg`)
- Rework coroutine syntax
- Move from `component/platform.py` to `domain/component.py` structure as with HA
- Move all defaults out of C++ and into config validation.
- Remove `make_...` helpers from Application class. Reason: Merge conflicts with every single new integration.
- Pointer Variables are stored globally instead of locally in setup(). Reason: stack size limit.
Future work:
- Rework const.py - Move all `CONF_...` into a conf class (usage `conf.UPDATE_INTERVAL` vs `CONF_UPDATE_INTERVAL`). Reason: Less convoluted import block
- Enable loading from `custom_components` folder.
**Related issue (if applicable):** https://github.com/esphome/feature-requests/issues/97
**Pull request in [esphome-docs](https://github.com/esphome/esphome-docs ) with documentation (if applicable):** esphome/esphome-docs#<esphome-docs PR number goes here>
## 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 [esphomedocs](https://github.com/OttoWinter/esphomedocs ).
2019-04-17 12:06:00 +02:00