Skip to content

fix creation of sensor groups #580

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

MrRagga-
Copy link

@MrRagga- MrRagga- commented Jul 8, 2025

I had the problem, that I could not add any new sensor groups. Looking at the HA logs, I figured out that "await" was missing for two async method calls.

- async methods need to be awaited to work properly
@MrRagga-
Copy link
Author

MrRagga- commented Jul 8, 2025

It seems, that quite a lot of async method calls are missing the "await".
#578
also looks like, that an await is missing here https://github.com/jeroenterheerdt/HAsmartirrigation/blob/master/custom_components/smart_irrigation/__init__.py#L1327

@jeroenterheerdt
Copy link
Owner

jeroenterheerdt commented Jul 8, 2025

I distinctly thought we got all of them, but apparently not... Feel free to expand your PR to take care of these.

@MrRagga-
Copy link
Author

MrRagga- commented Jul 8, 2025

There are several other places. I can try to fix them, too. But for this I would rather go for a proper dev setup to test it.

@jeroenterheerdt
Copy link
Owner

If you give me pointers, I can fix them quickly

@MrRagga-
Copy link
Author

MrRagga- commented Jul 9, 2025

Just search for "async_" in the init.py. I found there several async methods which are called without being awaiting for them. I haven't checked other files.

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

Successfully merging this pull request may close these issues.

2 participants