Hi everyone,
I am Oliver and same new to home assistant and to the whole field of home automation. I was happy to find this integration to help me by improving the consumption of my Hargassner boiler.
All fine until this morning the new core_2023 release was installed. Since then none of the sensors is detected anymore. Details I found are following:
Logger: homeassistant.components.sensor
Source: custom_components/nano_pk/hargassner.py:119
Integration: Sensor (documentation, issues)
First occurred: 08:24:10 (1 occurrences)
Last logged: 08:24:10
Error while setting up nano_pk platform for sensor
Traceback (most recent call last):
File “/usr/local/lib/python3.10/site-packages/apscheduler/schedulers/base.py”, line 896, in _create_plugin_instance
plugin_cls = class_container[alias]
KeyError: ‘interval’
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/usr/local/lib/python3.10/site-packages/pkg_resources/init.py”, line 3037, in _dep_map
return self.__dep_map
File “/usr/local/lib/python3.10/site-packages/pkg_resources/init.py”, line 2834, in getattr
raise AttributeError(attr)
AttributeError: _DistInfoDistribution__dep_map
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/usr/local/lib/python3.10/site-packages/pkg_resources/init.py”, line 3028, in _parsed_pkg_info
return self._pkg_info
File “/usr/local/lib/python3.10/site-packages/pkg_resources/init.py”, line 2834, in getattr
raise AttributeError(attr)
AttributeError: _pkg_info
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/helpers/entity_platform.py”, line 289, in _async_setup_platform
await asyncio.shield(task)
File “/usr/local/lib/python3.10/concurrent/futures/thread.py”, line 58, in run
result = self.fn(*self.args, **self.kwargs)
File “/config/custom_components/nano_pk/sensor.py”, line 25, in setup_platform
bridge = HargassnerBridge(host, uniqueId, msgFormat=format)
File “/config/custom_components/nano_pk/hargassner.py”, line 119, in init
self._scheduler.add_job(lambda:self._update(),‘interval’,seconds=updateInterval)
File “/usr/local/lib/python3.10/site-packages/apscheduler/schedulers/base.py”, line 420, in add_job
‘trigger’: self._create_trigger(trigger, trigger_args),
File “/usr/local/lib/python3.10/site-packages/apscheduler/schedulers/base.py”, line 921, in _create_trigger
return self._create_plugin_instance(‘trigger’, trigger, trigger_args)
File “/usr/local/lib/python3.10/site-packages/apscheduler/schedulers/base.py”, line 899, in _create_plugin_instance
plugin_cls = class_container[alias] = plugin_container[alias].load()
File “/usr/local/lib/python3.10/site-packages/pkg_resources/init.py”, line 2470, in load
self.require(*args, **kwargs)
File “/usr/local/lib/python3.10/site-packages/pkg_resources/init.py”, line 2493, in require
items = working_set.resolve(reqs, env, installer, extras=self.extras)
File “/usr/local/lib/python3.10/site-packages/pkg_resources/init.py”, line 803, in resolve
new_requirements = dist.requires(req.extras)[::-1]
File “/usr/local/lib/python3.10/site-packages/pkg_resources/init.py”, line 2755, in requires
dm = self._dep_map
File “/usr/local/lib/python3.10/site-packages/pkg_resources/init.py”, line 3039, in _dep_map
self.__dep_map = self._compute_dependencies()
File “/usr/local/lib/python3.10/site-packages/pkg_resources/init.py”, line 3048, in _compute_dependencies
for req in self._parsed_pkg_info.get_all(‘Requires-Dist’) or []:
File “/usr/local/lib/python3.10/site-packages/pkg_resources/init.py”, line 3030, in _parsed_pkg_info
metadata = self.get_metadata(self.PKG_INFO)
File “/usr/local/lib/python3.10/site-packages/pkg_resources/init.py”, line 1431, in get_metadata
value = self._get(path)
File “/usr/local/lib/python3.10/site-packages/pkg_resources/init.py”, line 1635, in _get
with open(path, ‘rb’) as stream:
FileNotFoundError: [Errno 2] No such file or directory: ‘/usr/local/lib/python3.10/site-packages/pytz-2022.7.dist-info/METADATA’
Is there any advice from anyone how to fix that?