Open lazariv opened 7 months ago
The configuration file from dev
-branch compiles correctly. Is the functionality the same as on main
?
Sorry for the late answer. Somehow notifications end up in my spam box :-/
The main
branch can best be ignored. It is an old branch and dev
is the default branch, which I adopted from the esphome repository.
I dropped the use of main
, because backward compatibility issues made it a bit hard to keep a clean main branch. To me, main
communicates "stable!". Therefore, I switched to dev
to make it clear that this is the development branch, that might sometimes be broken (I try not to break it though, all my home lamps are running this ;-) )
For releases, I branch dev
to a specific release/<version>
branch and publish that one as the release version.
As for what repository to use: use dev
if you are feeling lucky and trust in my competence, otherwise stick with the latest release version, which is currently 2023.4.0.
This might sound like a really old version, but fact is that it works well and it is still compatible with the current ESPHome version. I am working on a new version, with mainly changes in the build flags that make for a cleaner more standard build (the Espressif framework now has new features that can be used to clean things up). This means there will be a 2024 release in the upcoming future. But still, nothing too big feature-wise.
I hope this clears up your question. Enjoy your lamp!
BTW: keeping this issue open, as a reminder to remove the main branch to prevent others from running into it.
Describe the bug Compiling fails because custom components cannot be imported.
To Reproduce Steps to reproduce the behavior:
ImportError: cannot import name 'I2CComponent' from 'esphome.components.i2c' (/home/service/.local/lib/python3.10/site-packages/esphome/components/i2c/__init__.py)
Expected behavior Expect successful compilation
Additional context Configuration file:
Error output: