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 during setup: missing 1 required positional argument: 'config' #408

Closed
1 task done
lennon101 opened this issue Jun 13, 2024 · 8 comments
Closed
1 task done

Comments

@lennon101
Copy link

lennon101 commented Jun 13, 2024

What happened?

I just added this via HACS and after pasting the Openweather API key and hitting submit, the integration showed Failed to setup (see below). I checked the logs and it seems there's an error declaring missing 1 required positional argument: 'config'. Is this something that I've done or a bug in the integration? Let me know if you need me to do anymore troubleshooting.

image

How to reproduce

  1. install via HACS (HA running in docker container)
  2. paste API key into field and hit submit
  3. observe setup error

Relevant log output

2024-06-14 09:14:04.188 ERROR (MainThread) [homeassistant.config_entries] 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 139, in async_setup_entry
    await store.set_up_factory_defaults()
  File "/config/custom_components/smart_irrigation/store.py", line 308, in set_up_factory_defaults
    await self.async_factory_default_modules()
  File "/config/custom_components/smart_irrigation/store.py", line 332, in async_factory_default_modules
    inst = m(self.hass, {})
           ^^^^^^^^^^^^^^^^
TypeError: PyETO.__init__() missing 1 required positional argument: 'config'

Which version are you running?

v2024.6.1

Diagnostics file

  • I have attached a diagnostics file

Additional information

Following your instructions to download a diagnostic file is either outdated or not applicable in my case because clicking on those three little dots does not render the option to download this file? See below screenshot

image

@lennon101 lennon101 added the bug Something isn't working label Jun 13, 2024
@jeroenterheerdt
Copy link
Owner

revert back to the previous stable release.

@jeroenterheerdt jeroenterheerdt added awaiting user verification and removed bug Something isn't working labels Jun 14, 2024
@lennon101
Copy link
Author

revert back to the previous stable release.

Ok yup that seems to have fixed it for now. Installed version is now v2024.4.3. It would appear there is a bug in v2024.6.1.

Screenshot 2024-06-15 at 10 50 27 AM

@jeroenterheerdt
Copy link
Owner

yes, there is.

@jeroenterheerdt
Copy link
Owner

this should have been fixed in later beta releases, which also have their own issues unfortunately.

Copy link

github-actions bot commented Sep 8, 2024

Stale issue message

@lennon101
Copy link
Author

lennon101 commented Sep 8, 2024

Is this project active or truly stale? In it's current state I was not able to use it :(

@jeroenterheerdt
Copy link
Owner

This project is active. The stale message is because there was no activity on this issue. Try the latest version and let me know if you still having this issue.

Copy link

github-actions bot commented Nov 9, 2024

Stale issue message

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

No branches or pull requests

2 participants