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

Error: dictionary update sequence element #0 has length 15; 2 is required #484

Open
1 task done
clau-bucur opened this issue Aug 27, 2024 · 9 comments
Open
1 task done
Assignees
Labels
bug Something isn't working

Comments

@clau-bucur
Copy link
Contributor

What happened?

After installing v2024.8.2 I have the following error in HA logs and it repeats every 25 seconds:

2024-08-27 12:31:37.837 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved (None)
Traceback (most recent call last):
  File "/config/custom_components/smart_irrigation/__init__.py", line 502, in async_sensor_state_changed
    data_last_entry = dict(data_last_entry)
                      ^^^^^^^^^^^^^^^^^^^^^
ValueError: dictionary update sequence element #0 has length 15; 2 is required

How to reproduce

Install v2024.8.2. I do not think it appeared before that.

Relevant log output

No response

Which version are you running?

v2024.8.2

Diagnostics file

  • I have attached a diagnostics file

Additional information

Diagnostics file: config_entry-smart_irrigation-54a29ef14b286103055503f5030ddb5a.json

@clau-bucur clau-bucur added the bug Something isn't working label Aug 27, 2024
@ND1988
Copy link

ND1988 commented Aug 27, 2024

config_entry-smart_irrigation-01J4RK8R9SW2C4068Q7TR8674X.json
Hi! I am having a similar HA Log:
Additionally since 8.1 I do not get any new data from my sensor, yet the sensors are available

This error originated from a custom integration.

Logger: homeassistant
Source: custom_components/smart_irrigation/init.py:502
integration: Smart Irrigation (documentation, issues)
First occurred: 06:20:23 (4192 occurrences)
Last logged: 18:52:41

Error doing job: Task exception was never retrieved (None)
Traceback (most recent call last):
File "/config/custom_components/smart_irrigation/init.py", line 502, in async_sensor_state_changed
data_last_entry = dict(data_last_entry)
^^^^^^^^^^^^^^^^^^^^^
ValueError: dictionary update sequence element #0 has length 8; 2 is required

@ND1988
Copy link

ND1988 commented Aug 27, 2024

config_entry-smart_irrigation-01J4RK8R9SW2C4068Q7TR8674X.json Hi! I am having a similar HA Log: Additionally since 8.1 I do not get any new data from my sensor, yet the sensors are available

This error originated from a custom integration.

Logger: homeassistant Source: custom_components/smart_irrigation/init.py:502 integration: Smart Irrigation (documentation, issues) First occurred: 06:20:23 (4192 occurrences) Last logged: 18:52:41

Error doing job: Task exception was never retrieved (None) Traceback (most recent call last): File "/config/custom_components/smart_irrigation/init.py", line 502, in async_sensor_state_changed data_last_entry = dict(data_last_entry) ^^^^^^^^^^^^^^^^^^^^^ ValueError: dictionary update sequence element #0 has length 8; 2 is required

Complete reinstall (including deinstall in HACS, delelting custom_component folder and .storage-File) solved the issue for no new data update and the errors in HA

@clau-bucur
Copy link
Contributor Author

Thanks @ND1988 for the info.
I'd keep the reinstalling of the integration, as a last resort, if possible.

@akcasoy
Copy link

akcasoy commented Aug 28, 2024

config_entry-smart_irrigation-01J4RK8R9SW2C4068Q7TR8674X.json Hi! I am having a similar HA Log: Additionally since 8.1 I do not get any new data from my sensor, yet the sensors are available

This error originated from a custom integration.

Logger: homeassistant Source: custom_components/smart_irrigation/init.py:502 integration: Smart Irrigation (documentation, issues) First occurred: 06:20:23 (4192 occurrences) Last logged: 18:52:41
Error doing job: Task exception was never retrieved (None) Traceback (most recent call last): File "/config/custom_components/smart_irrigation/init.py", line 502, in async_sensor_state_changed data_last_entry = dict(data_last_entry) ^^^^^^^^^^^^^^^^^^^^^ ValueError: dictionary update sequence element #0 has length 8; 2 is required

Complete reinstall (including deinstall in HACS, delelting custom_component folder and .storage-File) solved the issue for no new data update and the errors in HA

You mean deleting the smart_irrigation folder under the "custom_components" folder?
I thought, as @jeroenterheerdt describes in his site (https://jeroenterheerdt.github.io/HAsmartirrigation/installation-uninstalling.html) removing Integration + removing HACS AddOn + Restart should already remove all those things...

I have actually removed those, and after restart i do not have any smart_irrigation folder under custom_components. But i am unsure about the "storage-File".. is it also removed? How can i see it?

@ND1988
Copy link

ND1988 commented Aug 29, 2024

So maybe the official uninstall description is enough.
I was just trying to go sure that no data is left before reinstalling, which might not have been necessary.

.storage I did access by my personal computer, and SAMBA Connection to my HomeAssistant Computer. Should work by SSH, too.

@apocaliss92
Copy link

I think I got something similar

`Registratore: homeassistant
Fonte: custom_components/smart_irrigation/init.py:502
Integrazione: Smart Irrigation (documentazione, problemi)
Prima occorrenza: 31 agosto 2024 alle ore 20:58:49 (3411 occorrenze)
Ultima registrazione: 10:52:31

Error doing job: Task exception was never retrieved (None)
Traceback (most recent call last):
File "/config/custom_components/smart_irrigation/init.py", line 502, in async_sensor_state_changed
data_last_entry = dict(data_last_entry)
^^^^^^^^^^^^^^^^^^^^^
ValueError: dictionary update sequence element #0 has length 15; 2 is required`

@clau-bucur
Copy link
Contributor Author

Complete reinstall (including deinstall in HACS, delelting custom_component folder and .storage-File) solved the issue for no new data update and the errors in HA

I've tried this one also but for me it did not solve the error I reported.

@ND1988
Copy link

ND1988 commented Sep 1, 2024

Did you restart after uninstall and deletion?

@clau-bucur
Copy link
Contributor Author

clau-bucur commented Sep 2, 2024

Yes yes. Restarted then deleted the storage file. Restarted again. Then installed 2024.8.2 and reconfigured.
Now that I think about it, when I added the integration, I unchecked "Use a weather service".

I've retaken all the steps now, but this time with using a weather service.
It seems to work now.

However this still seems like a bug, when upgrading from a lower version or when using the integration without any weather service.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants