Error Adding Smart Irrigation Integration due to "expected int for dictionary value @ data['forecast_days']" #322
Answered
by
jeroenterheerdt
ruffoxp-giu
asked this question in
Q&A
Replies: 2 comments
-
Why did you enter 0.5 for forecast days? It's supposed to be whole days.
Sometimes after uninstall files remain in the hidden .storage folder. Delete those and reboot, reinstall.
Get Outlook for Android<https://aka.ms/AAb9ysg>
…________________________________
From: ruffoxp-giu ***@***.***>
Sent: Tuesday, January 9, 2024 11:40:47 PM
To: jeroenterheerdt/HAsmartirrigation ***@***.***>
Cc: Subscribed ***@***.***>
Subject: [jeroenterheerdt/HAsmartirrigation] Error Adding Smart Irrigation Integration due to "expected int for dictionary value @ data['forecast_days']" (Discussion #322)
Hi everybody,
I'm trying to setup new version of Smart Irrigation on HA 2024.1.2 but I am not able to resolve an error that I suppose depends from the firts configuration I entered.
The first time I downloaded the repository using HACS and during configuration phase I entered the value "0.5" for parameter "forecast_days"; the system was ok until the first restart but from that moment every time I try to add the Smart Irrigation Integration I get always the same error: error setting up entry.
I tried almost everything: remove and reinstall the repository, restart HA, reboot the system, add repository and integration with browser in private mode but nothing worked for me.
I also searched for a resolution but can't find any useful articles for me.
I try to paste the log detail registered in HA. Can anyone help me?
Thank you so much!
________________________________
Logger: homeassistant.config_entries
Source: config_entries.py:406
First occurred: 15:11:47 (1 occurrences)
Last logged: 15:11:47
Error setting up entry Smart Irrigation for smart_irrigation
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 406, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/smart_irrigation/init.py", line 64, in async_setup_entry
store = await async_get_registry(hass)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/smart_irrigation/store.py", line 561, in async_get_registry
return cast(SmartIrrigationStorage, await task)
^^^^^^^^^^
File "/config/custom_components/smart_irrigation/store.py", line 556, in _load_reg
await registry.async_load()
File "/config/custom_components/smart_irrigation/store.py", line 228, in async_load
inst = m(self.hass, modconfig)
^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/smart_irrigation/calcmodules/pyeto/init.py", line 57, in init
super().init(name="PyETO", description=localize("calcmodules.pyeto.description",hass.config.language)+".", schema=SCHEMA, config=config)
File "/config/custom_components/smart_irrigation/calcmodules/calcmodule.py", line 26, in init
raise e
File "/config/custom_components/smart_irrigation/calcmodules/calcmodule.py", line 24, in init
self._schema(config)
File "/usr/local/lib/python3.11/site-packages/voluptuous/schema_builder.py", line 272, in call
return self._compiled([], data)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/voluptuous/schema_builder.py", line 595, in validate_dict
return base_validate(path, iteritems(data), out)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/voluptuous/schema_builder.py", line 433, in validate_mapping
raise er.MultipleInvalid(errors)
voluptuous.error.MultipleInvalid: expected int for dictionary value @ data['forecast_days']
—
Reply to this email directly, view it on GitHub<#322>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AB6PIPWD55O43G4PRMVMI7LYNVJG7AVCNFSM6AAAAABBTGS5BCVHI2DSMVQWIX3LMV43ERDJONRXK43TNFXW4OZWGA2TANZTGM>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ruffoxp-giu
-
I removed the folder smart_irigation inside .storage folder, restart HA and reinstall the integration. Now it works! thank you!! I entered 0.5 for forecast days because I think that wait 24h for rain can stress grass too much and that 12h (0.5 days) would can be a good option; also for me wasn't clear that the parameter was an integer value... |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everybody,
I'm trying to setup new version of Smart Irrigation on HA 2024.1.2 but I am not able to resolve an error that I suppose depends from the firts configuration I entered.
The first time I downloaded the repository using HACS and during configuration phase I entered the value "0.5" for parameter "forecast_days"; the system was ok until the first restart but from that moment every time I try to add the Smart Irrigation Integration I get always the same error: error setting up entry.
I tried almost everything: remove and reinstall the repository, restart HA, reboot the system, add repository and integration with browser in private mode but nothing worked for me.
I also searched for a resolution but can't find any useful articles for me.
I try to paste the log detail registered in HA. Can anyone help me?
Thank you so much!
Logger: homeassistant.config_entries
Source: config_entries.py:406
First occurred: 15:11:47 (1 occurrences)
Last logged: 15:11:47
Error setting up entry Smart Irrigation for smart_irrigation
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 406, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/smart_irrigation/init.py", line 64, in async_setup_entry
store = await async_get_registry(hass)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/smart_irrigation/store.py", line 561, in async_get_registry
return cast(SmartIrrigationStorage, await task)
^^^^^^^^^^
File "/config/custom_components/smart_irrigation/store.py", line 556, in _load_reg
await registry.async_load()
File "/config/custom_components/smart_irrigation/store.py", line 228, in async_load
inst = m(self.hass, modconfig)
^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/smart_irrigation/calcmodules/pyeto/init.py", line 57, in init
super().init(name="PyETO", description=localize("calcmodules.pyeto.description",hass.config.language)+".", schema=SCHEMA, config=config)
File "/config/custom_components/smart_irrigation/calcmodules/calcmodule.py", line 26, in init
raise e
File "/config/custom_components/smart_irrigation/calcmodules/calcmodule.py", line 24, in init
self._schema(config)
File "/usr/local/lib/python3.11/site-packages/voluptuous/schema_builder.py", line 272, in call
return self._compiled([], data)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/voluptuous/schema_builder.py", line 595, in validate_dict
return base_validate(path, iteritems(data), out)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/voluptuous/schema_builder.py", line 433, in validate_mapping
raise er.MultipleInvalid(errors)
voluptuous.error.MultipleInvalid: expected int for dictionary value @ data['forecast_days']
Beta Was this translation helpful? Give feedback.
All reactions