New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
init.py ERROR #14
Comments
@fr33soul it looks like you don't have I2C enabled. |
the instructions above didn't fix the issue.
|
My fix for this issue with a Pi4 B and Argon40 case had a few variations because I utilize the Argon40 M.2 case with built-in SATA M.2 storage running HASS 5.5 (currently development track).
dtparam=i2c_vc=on
i2c-dev
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Logger: homeassistant.setup
Source: custom_components/argon40/init.py:79
First occurred: 21:53:16 (1 occurrences)
Last logged: 21:53:16
Error during setup of component argon40
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/smbus/smbus.py", line 81, in open
self._fd = os.open(path, os.O_RDWR, 0)
FileNotFoundError: [Errno 2] No such file or directory: '/dev/i2c-1'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/config/custom_components/argon40/init.py", line 38, in async_setup
bus = SMBus(1)
File "/usr/local/lib/python3.8/site-packages/smbus/smbus.py", line 56, in init
self.open(bus)
File "/usr/local/lib/python3.8/site-packages/smbus/smbus.py", line 83, in open
raise IOError(e.errno)
OSError: 2
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 213, in _async_setup_component
result = await task
File "/config/custom_components/argon40/init.py", line 79, in async_setup
address,
UnboundLocalError: local variable 'address' referenced before assignment
The text was updated successfully, but these errors were encountered: