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

[New Source] Panda Waste, Ireland #3749

Merged
merged 3 commits into from
Mar 3, 2025
Merged

Conversation

gcacace
Copy link
Contributor

@gcacace gcacace commented Feb 7, 2025

Implemented source for Panda Waste, Ireland.

Fixes #2894.

@gcacace gcacace changed the title [New Source] Panda Recycling, Ireland [New Source] Panda Waste, Ireland Feb 7, 2025
@gcacace
Copy link
Contributor Author

gcacace commented Feb 7, 2025

Question for the maintainers of this repo: I'm wondering whether there is a better way to manage the authorization token: wouldn't be better storing it in HA until it's about to expire, so every waste schedule refresh request won't call the authentication API all the time?

@5ila5
Copy link
Collaborator

5ila5 commented Mar 3, 2025

Thanks for your contribution.

It's once a day, so I don't think it's that big of a deal, but you could store the token as an attribute of the source object so it would not call the API every day but just on HA reboot or if it expires. Storing it directly in HA so it isn't called even on reboot isn't that straight forward, and we do not have a good approach for that.

I'll merge this as is for now, if you'd like to redesign it this way feel free to do so and open a new PR.

@5ila5 5ila5 merged commit 3f64322 into mampfes:master Mar 3, 2025
2 checks passed
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.

[Source Request]: Add support for Panda Waste in Ireland
2 participants