jeroenterheerdt / HAsmartirrigation

Smart Irrigation custom component for Home Assistant
MIT License
301 stars 47 forks source link

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

Closed wauswaus closed 6 days ago

wauswaus commented 2 weeks ago

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

Additional information

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

wauswaus commented 2 weeks ago

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

jeroenterheerdt commented 2 weeks ago

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

wauswaus commented 2 weeks ago

I do not use OWM at all

Smittybk1 commented 2 weeks ago

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 commented 1 week ago

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 commented 1 week ago

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 commented 1 week ago

please try https://github.com/jeroenterheerdt/HAsmartirrigation/releases/tag/v2024.5.0

wauswaus commented 6 days ago

Latest beta seems to fixed it

Smittybk1 commented 6 days ago

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 commented 6 days ago

Install beta version through HACS.

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: Smittybk1 @.> Sent: Sunday, May 12, 2024 5:45:21 PM To: jeroenterheerdt/HAsmartirrigation @.> Cc: Comment @.>; Assign @.>; Subscribed @.***> Subject: Re: [jeroenterheerdt/HAsmartirrigation] Smart irrigation failed to setup after updating to latest version (Issue #355)

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?

— Reply to this email directly, view it on GitHubhttps://github.com/jeroenterheerdt/HAsmartirrigation/issues/355#issuecomment-2106441119 or unsubscribehttps://github.com/notifications/unsubscribe-auth/AB6PIPRGC5YOUJQIH2VDUOLZCAEKFBFKMF2HI4TJMJ2XIZLTSSBKK5TBNR2WLJDUOJ2WLJDOMFWWLO3UNBZGKYLEL5YGC4TUNFRWS4DBNZ2F6YLDORUXM2LUPGBKK5TBNR2WLJDUOJ2WLJDOMFWWLLTXMF2GG2C7MFRXI2LWNF2HTAVFOZQWY5LFUVUXG43VMWSG4YLNMWVXI2DSMVQWIX3UPFYGLAVFOZQWY5LFVIZDANJTHA4TIMJXG6SG4YLNMWUWQYLTL5WGCYTFNSWHG5LCNJSWG5C7OR4XAZNMJFZXG5LFINXW23LFNZ2KM5DPOBUWG44TQKSHI6LQMWVHEZLQN5ZWS5DPOJ42K5TBNR2WLKJSGYZTCNZZGE3TNAVEOR4XAZNFNFZXG5LFUV3GC3DVMWVDEMRXGA2TGMRVGQYIFJDUPFYGLJLMMFRGK3FFOZQWY5LFVIZDANJTHA4TIMJXG6TXI4TJM5TWK4VGMNZGKYLUMU. You are receiving this email because you commented on the thread.

Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

wauswaus commented 4 days ago

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 commented 4 days ago

Thank you! I'm all set and it's working

On Tue, May 14, 2024, 03:13 wauswaus @.***> wrote:

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.

— Reply to this email directly, view it on GitHub https://github.com/jeroenterheerdt/HAsmartirrigation/issues/355#issuecomment-2109448224, or unsubscribe https://github.com/notifications/unsubscribe-auth/A4SPPRV6FEU7V4774HMV4RTZCG2QZAVCNFSM6AAAAABG7RUC2CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBZGQ2DQMRSGQ . You are receiving this because you commented.Message ID: @.***>