moonraker-home-assistant icon indicating copy to clipboard operation
moonraker-home-assistant copied to clipboard

Setup failed for custom integration 'moonraker': Unable to import component: Exception importing custom_components.moonraker

Open IsioNisin opened this issue 10 months ago • 2 comments

Version of the moonraker integration

1.2.0

Describe your setup

Moonraker, Fluidd

HA Core via Termux on Android

Describe the bug

addon doesn't start

Moonraker Logs

Traceback (most recent call last): File "/data/data/com.termux/files/home/hass/lib/python3.11/site-packages/homeassistant/loader.py", line 921, in get_component ComponentProtocol, importlib.import_module(self.pkg_path) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/data/data/com.termux/files/usr/lib/python3.11/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "", line 1204, in _gcd_import File "", line 1176, in _find_and_load File "", line 1147, in _find_and_load_unlocked File "", line 690, in _load_unlocked File "", line 940, in exec_module File "", line 241, in call_with_frames_removed File "/data/data/com.termux/files/home/.homeassistant/custom_components/moonraker/init.py", line 30, in from .sensor import SENSORS File "/data/data/com.termux/files/home/.homeassistant/custom_components/moonraker/sensor.py", line 451 name=f"{split_obj[1].replace("", " ")} Power".title(), ^ SyntaxError: f-string: unmatched '('

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/data/data/com.termux/files/home/hass/lib/python3.11/site-packages/homeassistant/setup.py", line 296, in _async_setup_component component = await integration.async_get_component() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/data/data/com.termux/files/home/hass/lib/python3.11/site-packages/homeassistant/loader.py", line 894, in async_get_component comp = self.get_component() ^^^^^^^^^^^^^^^^^^^^ File "/data/data/com.termux/files/home/hass/lib/python3.11/site-packages/homeassistant/loader.py", line 932, in get_component raise ImportError(f"Exception importing {self.pkg_path}") from err ImportError: Exception importing custom_components.moonraker

IsioNisin avatar Apr 10 '24 15:04 IsioNisin