Logger: homeassistant.config_entries
Source: loader.py:504
First occurred: 9:39:39 (1 occurrences)
Last logged: 9:39:39
Error setting up entry 50PUS6804/12 (FZ4A1940070795) for light
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 249, in async_setup
result = await component.async_setup_entry(hass, self) # type: ignore
File "/usr/src/homeassistant/homeassistant/components/light/__init__.py", line 270, in async_setup_entry
return await hass.data[DOMAIN].async_setup_entry(entry)
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 140, in async_setup_entry
platform = await async_prepare_setup_platform(
File "/usr/src/homeassistant/homeassistant/setup.py", line 298, in async_prepare_setup_platform
platform = integration.get_platform(domain)
File "/usr/src/homeassistant/homeassistant/loader.py", line 499, in get_platform
cache[full_name] = self._import_platform(platform_name)
File "/usr/src/homeassistant/homeassistant/loader.py", line 504, in _import_platform
return importlib.import_module(f"{self.pkg_path}.{platform_name}")
File "/usr/local/lib/python3.8/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 779, in exec_module
File "<frozen importlib._bootstrap_external>", line 916, in get_code
File "<frozen importlib._bootstrap_external>", line 846, in source_to_code
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/config/custom_components/philips_js/light.py", line 121
for algo in style.get("algorithms", {})]
^
SyntaxError: closing parenthesis ']' does not match opening parenthesis '(' on line 118
Removing the ]
on line 118 fixed it.
The entity stays on in HA and the effects seems to be all working.
I can change the color by setting the effect in expert and then choose the color.
Turning the entity off and it seems like it’s working now.
{
"styleName": "FOLLOW_VIDEO",
"isExpert": false,
"menuSetting": "STANDARD",
"stringValue": "Standard"
}