Remove global token and init()#27
Remove global token and init()#27amelchio wants to merge 1 commit intoThibauth:masterfrom amelchio:local-token
Conversation
|
@Thibauth - can you take a look at this pr and see if a new release can be made with it included? There’s a few of us waiting on a fix to get pushover working again in Home Assistant - thanks! |
|
Thanks a lot for the fix @amelchio ! The use of a global However, I now wonder whether a better way to structure this library would be to have a po = Pushover(api_token)
po.send(user_key, "Hello world!")I would be curious to hear your opinion about this. If we believe this is better, then I would prefer to make this change before a new release so as to minimize the number of backward incompatible changes. |
|
I see where you are coming from. For the Home Assistant case, though, we have just a single I don't have much of an opinion either way. I only passed by trying to fix this bug :) |
|
Any movement on this? - to me, it looks good to merge so that the bugs are fixed, then we can focus on ways to improve? |
|
At this point, I agree with @jwater7 :) |
|
@Thibauth what's the status on this one? :-) |
|
Sorry for the long period of inactivity, I just started working back on this. I ended up going for the bigger refactoring that I described above. This breaks backward compatibility but I think it is better in the long run. If you have a chance, it would be great if you could test to make sure everything is alright. I also need to update the documentation to reflect the changes and make a new release. |
|
I adjusted to your changes and it works fine 👍. So please go ahead and make a new release :-) |
|
Do you have an ETA for this? |
|
any news about this?? |
|
@Thibauth is there any news on your refactor? Are we able to assist at all? |
|
@Thibauth If you have not planned more changes, could you please do a PyPI release? |
|
It has been a year now. At this point I consider the project abandoned so I am going to close this PR. |
|
NOTICE: Now that Apprise is available (https://www.home-assistant.io/integrations/apprise/) (https://github.com/caronc/apprise/) I've migrated my automatons to use the new apprise notify service (using the pushover/pover URL) and I no longer have this issue. |
This removes the global token and instead uses a per-
Clientvalue, allowing access to multiple registered applications by initializing severalClientobjects.The issue was reported in home-assistant/core#11641