So I’m following this thread to try to get my Lync 12 system into HA.
I started with the “integration not found error,” but after the changes tot the following files:
manifest.json (adding in the version line)
{
"domain": "htd_lync12",
"name": "HTD Lync12 Series",
"dependencies": [],
"requirements": [],
"version": "1.0.0"
}
init.py (commenting out the Dict
in line 8)
I have now “upgraded” to the following error when I check my configuration:
Component error: htd_lync12 - Exception importing custom_components.htd_lync12
This is what I’m currently running:
Home Assistant 2022.8.1
Supervisor 2022.07.0
Operating System 8.4
Frontend 20220802.0 - latest
I can’t find that in this thread anywhere. Anyone else run across this issue?
Edit: didn’t realize there was more info in the logs (sorry, I’m new to this.)
The logs pointed me right to the error and I removed the trailing comma before #Dict and then it was happy.
Logger: homeassistant.loader
Source: loader.py:638
First occurred: 8:57:03 PM (3 occurrences)
Last logged: 8:59:58 PM
Unexpected exception importing component custom_components.htd_lync12
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/loader.py", line 638, in get_component
cache[self.domain] = importlib.import_module(self.pkg_path)
File "/usr/local/lib/python3.10/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 879, in exec_module
File "<frozen importlib._bootstrap_external>", line 1017, in get_code
File "<frozen importlib._bootstrap_external>", line 947, in source_to_code
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/config/custom_components/htd_lync12/__init__.py", line 8
from homeassistant.helpers.typing import ConfigType, #Dict
^^^^^
SyntaxError: trailing comma not allowed without surrounding parentheses