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

Use AccountHandler when getting account data, reason for switch_account/switch_user #1353

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

Conversation

domizei385
Copy link
Contributor

Added some missing interactions with AbstractAccountHandler, added reason to switch_user/switch_account to easier work with an external accountHandler

@@ -410,7 +411,7 @@ async def _restart_pogo_safe(self):
await asyncio.sleep(1)
return await self.start_pogo()

async def _switch_user(self):
async def _switch_user(self, reason=None):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where is that reason used? What type should it have? Apparently string? Could use a type (imho enum) at this point

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