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

Smart irrigation failed to setup after updating to latest version #355

Closed
1 task done
wauswaus opened this issue Apr 30, 2024 · 12 comments
Closed
1 task done

Smart irrigation failed to setup after updating to latest version #355

wauswaus opened this issue Apr 30, 2024 · 12 comments
Assignees
Labels
bug Something isn't working

Comments

@wauswaus
Copy link

What happened?

Updated to version v2024.4.5

How to reproduce

update?

Relevant log output

Logs tell me this:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 551, in async_setup
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/smart_irrigation/__init__.py", line 102, in async_setup_entry
    if hass.data[const.DOMAIN][const.CONF_OWM_API_VERSION] == "2.5":
       ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
KeyError: 'owm_api_version'

Which version are you running?

v2024.4.5

Diagnostics file

  • I have attached a diagnostics file

Additional information

Can't attacht diagnostics file as it is not available when integration is not setup

@wauswaus wauswaus added the bug Something isn't working label Apr 30, 2024
@wauswaus
Copy link
Author

Now saw that I still has 'show beta versions' ticked in HACS... so this issue is not in a released version

@jeroenterheerdt
Copy link
Owner

Thanks, were you using OWM before? If so, which api version?

@wauswaus
Copy link
Author

wauswaus commented May 1, 2024

I do not use OWM at all

@Smittybk1
Copy link

Smittybk1 commented May 5, 2024

I have the same issue. Here is my log output
Logger: homeassistant.config_entries
Source: config_entries.py:575
First occurred: 6:30:29 PM (1 occurrences)
Last logged: 6:30:29 PM

Error setting up entry Smart Irrigation for smart_irrigation
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 575, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/smart_irrigation/init.py", line 96, in async_setup_entry
).strip()
^^^^^
AttributeError: 'NoneType' object has no attribute 'strip'

Logger: homeassistant.util.loop
Source: util/loop.py:99
First occurred: 6:30:29 PM (6 occurrences)
Last logged: 6:30:29 PM

Detected blocking call to import_module inside the event loop by custom integration 'smart_irrigation' at custom_components/smart_irrigation/helpers.py, line 436: mod = importlib.import_module( (offender: /config/custom_components/smart_irrigation/helpers.py, line 436: mod = importlib.import_module(), please create a bug report at https://github.com/jeroenterheerdt/HASmartIrrigation/issues

@DanDan800
Copy link

DanDan800 commented May 9, 2024

Same here. I use API 3.0 of OWM quite a while. Installation broke after updating to 2024.4.5

Logger: homeassistant.config_entries
Quelle: config_entries.py:575
Erstmals aufgetreten: 10:25:49 (1 Vorkommnisse)
Zuletzt protokolliert: 10:25:49

Error setting up entry Smart Irrigation for smart_irrigation
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 575, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/smart_irrigation/init.py", line 72, in async_setup_entry
store = await async_get_registry(hass)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/smart_irrigation/store.py", line 645, in async_get_registry
return cast(SmartIrrigationStorage, await task)
^^^^^^^^^^
voluptuous.error.MultipleInvalid: expected SOLRAD_behavior or one of '1', '2', '3' for dictionary value @ data['solrad_behavior']

@jeroenterheerdt
Copy link
Owner

Same here. I use API 3.0 of OWM quite a while. Installation broke after updating to 2024.4.5

Logger: homeassistant.config_entries Quelle: config_entries.py:575 Erstmals aufgetreten: 10:25:49 (1 Vorkommnisse) Zuletzt protokolliert: 10:25:49

Error setting up entry Smart Irrigation for smart_irrigation Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 575, in async_setup result = await component.async_setup_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/smart_irrigation/init.py", line 72, in async_setup_entry store = await async_get_registry(hass) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/smart_irrigation/store.py", line 645, in async_get_registry return cast(SmartIrrigationStorage, await task) ^^^^^^^^^^ voluptuous.error.MultipleInvalid: expected SOLRAD_behavior or one of '1', '2', '3' for dictionary value @ data['solrad_behavior']

This is not the same issue at all, please open a separate issue for this.

@jeroenterheerdt
Copy link
Owner

@wauswaus
Copy link
Author

Latest beta seems to fixed it

@Smittybk1
Copy link

Dumb question....how can I use the above link for the fix and add it to HA? I see the zip file. How do I use it?

@jeroenterheerdt
Copy link
Owner

jeroenterheerdt commented May 13, 2024 via email

@wauswaus
Copy link
Author

Dumb question....how can I use the above link for the fix and add it to HA? I see the zip file. How do I use it?

in HACS navigate to the Smart Irrigation page, then on the 3 vertical dots in the right upper corner select 'redownload'. On the screen thats opens select 'show beta versions' and then you can select the latest beta.

@Smittybk1
Copy link

Smittybk1 commented May 14, 2024 via email

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

4 participants