Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maxhour not found for day 2 in month #20

Open
LaStrada opened this issue Jan 2, 2024 · 3 comments
Open

Maxhour not found for day 2 in month #20

LaStrada opened this issue Jan 2, 2024 · 3 comments

Comments

@LaStrada
Copy link

LaStrada commented Jan 2, 2024

Version of the custom_component

0.3.0

Configuration

Add your logs here.

Describe the bug

Not loading. Not sure if this happened after upgrading to 2024.1 beta or if this happened before, but from the logs it looks like it does not work in the beginning of the year, in this case January 2nd.

Debug log

2024-01-02 21:59:54.992 DEBUG (MainThread) [custom_components.elvia] Maxhour not found for day 2 in month
2024-01-02 21:59:54.992 DEBUG (MainThread) [custom_components.elvia] Finished fetching elvia data in 0.199 seconds (success: True)
2024-01-02 21:59:54.994 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up elvia platform for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 360, in _async_setup_platform
await asyncio.shield(task)
File "/config/custom_components/elvia/sensor.py", line 71, in async_setup_entry
ElviaMaxHourAverageSensor(coordinator, True),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/elvia/sensor.py", line 156, in __init__
super().__init__(coordinator, description, "elvia")
File "/config/custom_components/elvia/sensor.py", line 97, in __init__
description.key = f"{key_prefix}_{description.key}"
^^^^^^^^^^^^^^^
File "<string>", line 4, in __setattr__
dataclasses.FrozenInstanceError: cannot assign to field 'key'
2024-01-02 22:00:07.886 DEBUG (MainThread) [custom_components.fresh_intellivent_sky] Finished fetching fresh_intellivent_sky data in 1.847 seconds (success: True)
2024-01-02 22:00:30.145 DEBUG (MainThread) [custom_components.fresh_intellivent_sky] Finished fetching fresh_intellivent_sky data in 2.107 seconds (success: True)
@LaStrada LaStrada changed the title Not working cannot assign to field 'key' Jan 2, 2024
@LaStrada LaStrada changed the title cannot assign to field 'key' Maxhour not found for day 2 in month Jan 2, 2024
@LaStrada
Copy link
Author

LaStrada commented Jan 2, 2024

I have more debug logs if needed, but I wasn't sure what I needed to mask.

@sindrebroch
Copy link
Owner

Thanks for reporting.

Has it gotten better? I know there have been some issues on the first days of the month, which I have not had the time to look at yet.

@LaStrada
Copy link
Author

LaStrada commented Jan 3, 2024

Same error today

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants