mirekmal
(Mirek Malinowski)
December 26, 2023, 3:03pm
325
Working fine for me at the moment. Though for last night I noticed some weatherbit related errors in the log file.
yan
January 4, 2024, 9:06am
326
Since updating to 2024.01 I got this error!
@briis can you have a look at it.
Thanks
opened 07:34AM - 30 Dec 23 UTC
There is a new error with HA 2024.1b, weatherbit doesn't work anymore
```
Logg… er: homeassistant.loader
Source: loader.py:842
First occurred: December 29, 2023 at 17:09:46 (1 occurrences)
Last logged: December 29, 2023 at 17:09:46
Unexpected exception importing platform custom_components.weatherbit.sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/loader.py", line 842, in get_platform
cache[full_name] = self._import_platform(platform_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/loader.py", line 859, in _import_platform
return importlib.import_module(f"{self.pkg_path}.{platform_name}")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 940, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/config/custom_components/weatherbit/sensor.py", line 84, in <module>
@dataclass
^^^^^^^^^
File "/usr/local/lib/python3.11/dataclasses.py", line 1230, in dataclass
return wrap(cls)
^^^^^^^^^
File "/usr/local/lib/python3.11/dataclasses.py", line 1220, in wrap
return _process_class(cls, init, repr, eq, order, unsafe_hash,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dataclasses.py", line 1027, in _process_class
_init_fn(all_init_fields,
File "/usr/local/lib/python3.11/dataclasses.py", line 545, in _init_fn
raise TypeError(f'non-default argument {f.name!r} '
TypeError: non-default argument 'key' follows default argument
```
```
Logger: homeassistant.setup
Source: setup.py:403
First occurred: December 29, 2023 at 17:09:46 (2 occurrences)
Last logged: December 29, 2023 at 17:10:08
Unable to prepare setup for platform 'weatherbit.sensor': Platform not found (Exception importing custom_components.weatherbit.sensor).
```
Maybe this helps https://developers.home-assistant.io/blog/2023/12/11/entity-description-changes/
briis
(Bjarne Riis)
January 4, 2024, 2:28pm
328
I have not been updating this for a long time, and to get it to work, will require some rewrite, which I currently don’t have time for. I do suggest that you look for an alternative provider. It will be 1-2 month before I can look at this due to other priorities.
I am sorry.
1 Like
briis
(Bjarne Riis)
January 6, 2024, 9:36am
329
I did a new release 1.0.21 which makes it possible to load the Integration again. There will still be a warning on the Weather Entity using attributes, and that will NOT be fixed.
As the limited amount of calls per day makes it very difficult to develop/test this integration I will abandon this. In pratical terms it will stop working as of HA 2024.3 as the weather attributes as of that release are no longer supported.
If anyone wants to keep it alive, feel free to fork the integration. All this is now also stated on the README on Github
2 Likes