Logger: homeassistant.loader
Source: loader.py:1046
First occurred: 12:47:48 PM (2 occurrences)
Last logged: 12:47:49 PM
Unexpected exception importing component custom_components.ocpp
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/loader.py", line 1046, in _get_component
ComponentProtocol, importlib.import_module(self.pkg_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/util/loop.py", line 144, in protected_loop_func
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/importlib/init.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1387, in _gcd_import
File "", line 1360, in _find_and_load
File "", line 1331, in _find_and_load_unlocked
File "", line 935, in _load_unlocked
File "", line 995, in exec_module
File "", line 488, in _call_with_frames_removed
File "/config/custom_components/ocpp/init.py", line 13, in
from .api import CentralSystem
File "/config/custom_components/ocpp/api.py", line 52, in
from .const import (
File "/config/custom_components/ocpp/const.py", line 121, in
UnitOfMeasure.hertz: ha.UnitOfFrequency.HERTZ,
^^^^^^^^^^^^^^^^^^^
AttributeError: type object 'UnitOfMeasure' has no attribute 'hertz'
OCPP does not load on HA boot
Just updated HA to version Core 2024.5.5
Logger: homeassistant.loader Source: loader.py:1046 First occurred: 12:47:48 PM (2 occurrences) Last logged: 12:47:49 PM
Unexpected exception importing component custom_components.ocpp Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/loader.py", line 1046, in _get_component ComponentProtocol, importlib.import_module(self.pkg_path) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/util/loop.py", line 144, in protected_loop_func return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/importlib/init.py", line 90, in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "", line 1387, in _gcd_import
File "", line 1360, in _find_and_load
File "", line 1331, in _find_and_load_unlocked
File "", line 935, in _load_unlocked
File "", line 995, in exec_module
File "", line 488, in _call_with_frames_removed
File "/config/custom_components/ocpp/init.py", line 13, in
from .api import CentralSystem
File "/config/custom_components/ocpp/api.py", line 52, in
from .const import (
File "/config/custom_components/ocpp/const.py", line 121, in
UnitOfMeasure.hertz: ha.UnitOfFrequency.HERTZ,
^^^^^^^^^^^^^^^^^^^
AttributeError: type object 'UnitOfMeasure' has no attribute 'hertz'