Skip to content

Conversation

@Freebien
Copy link
Contributor

@Freebien Freebien commented Oct 7, 2025

Proposed change

Fixing authentication for Europe by using Auth0 and using library version 1.4.2.

Here is the release for the sharkiq library that has been updated : https://github.com/sharkiqlibs/sharkiq/releases/tag/v1.4.2

Type of change

  • Dependency upgrade
  • Bugfix (non-breaking change which fixes an issue)
  • New integration (thank you!)
  • New feature (which adds functionality to an existing integration)
  • Deprecation (breaking change to happen in the future)
  • Breaking change (fix/feature causing existing functionality to break)
  • Code quality improvements to existing code or addition of tests

Additional information

Checklist

  • I understand the code I am submitting and can explain how it works.
  • The code change is tested and works locally.
  • Local tests pass. Your PR cannot be merged unless tests pass
  • There is no commented out code in this PR.
  • I have followed the development checklist
  • I have followed the perfect PR recommendations
  • The code has been formatted using Ruff (ruff format homeassistant tests)
  • Tests have been added to verify that the new code works.
  • Any generated code has been carefully reviewed for correctness and compliance with project standards.

If user exposed functionality or configuration variables are added/changed:

If the code communicates with devices, web services, or third-party tools:

  • The manifest file has all fields filled out correctly.
    Updated and included derived files by running: python3 -m script.hassfest.
  • New or updated dependencies have been added to requirements_all.txt.
    Updated by running python3 -m script.gen_requirements_all.
  • For the updated dependencies - a link to the changelog, or at minimum a diff between library versions is added to the PR description.

To help with the load of incoming pull requests:

Fixing authentication for Europe by using Auth0 and using library version 1.4.1
Copy link

@home-assistant home-assistant bot left a comment

Choose a reason for hiding this comment

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

Hi @Freebien

It seems you haven't yet signed a CLA. Please do so here.

Once you do that we will be able to review and accept this pull request.

Thanks!

@home-assistant
Copy link

home-assistant bot commented Oct 7, 2025

Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍

Learn more about our pull request process.

@home-assistant home-assistant bot marked this pull request as draft October 7, 2025 14:47
@home-assistant
Copy link

home-assistant bot commented Oct 7, 2025

Hey there @JeffResc, @funkybunch, mind taking a look at this pull request as it has been labeled with an integration (sharkiq) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of sharkiq can trigger bot actions by commenting:

  • @home-assistant close Closes the pull request.
  • @home-assistant rename Awesome new title Renames the pull request.
  • @home-assistant reopen Reopen the pull request.
  • @home-assistant unassign sharkiq Removes the current integration label and assignees on the pull request, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the pull request.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the pull request.

@Freebien Freebien marked this pull request as ready for review October 7, 2025 14:51
@funkybunch
Copy link
Contributor

@home-assistant rename sharkiq dependency bump to 1.4.1

@home-assistant home-assistant bot changed the title Fix sharkiq authentication sharkiq dependency bump to 1.4.1 Oct 7, 2025
async with asyncio.timeout(API_TIMEOUT):
LOGGER.debug("Initialize connection to Ayla networks API")
await ayla_api.async_sign_in()
await ayla_api.async_sign_in(True)
Copy link
Contributor

Choose a reason for hiding this comment

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

@Freebien forcing True here will force an authentication method that will break the integration for users outside of the EU. We may need another upstream dependency update to work around this.

Could you test out this PR locally and let me know if it works for you without any parameters in the ayla_api.async_sign_in() method?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Just tested the PR and it works as intended !

This should be better indeed. I didn't thought it would break for outside the EU.

Copy link
Contributor

Choose a reason for hiding this comment

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

@Freebien just cut a new release for the upstream library. If you remove this Boolean in both places and update your PR to 1.4.2 of the dependency then you can reopen the issue and I’ll approve.

Copy link
Contributor

@funkybunch funkybunch Oct 8, 2025

Choose a reason for hiding this comment

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

Or @joostlek are you saying that the expected behavior is for 2nd level dependencies to not show up in requirements_all.txt?

If that’s the case the I’ll submit approval and no further changes will be needed.

@funkybunch
Copy link
Contributor

@home-assistant add-label needs-more-information

@abmantis abmantis marked this pull request as draft October 7, 2025 22:17
@abmantis
Copy link
Member

abmantis commented Oct 7, 2025

Marking this as draft. Pease mark it as ready when the concerns raised are addressed.
Thanks! :)

Rollback to before async_sign_in(True) to allow non EU users to authent
@funkybunch
Copy link
Contributor

@home-assistant remove-label needs-more-information

@Freebien Freebien changed the title sharkiq dependency bump to 1.4.1 sharkiq dependency bump to 1.4.2 Oct 8, 2025
@Freebien Freebien marked this pull request as ready for review October 8, 2025 13:13
@home-assistant home-assistant bot requested a review from funkybunch October 8, 2025 13:13
Copy link
Contributor

@funkybunch funkybunch left a comment

Choose a reason for hiding this comment

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

Thanks @Freebien!

@Freebien Freebien requested a review from joostlek October 9, 2025 12:13
@funkybunch
Copy link
Contributor

funkybunch commented Oct 10, 2025

@Freebien when you have a moment could you please update your link to the release notes in the PR description to 1.4.2?

Thanks!

@Freebien
Copy link
Contributor Author

@Freebien when you have a moment could you please update your link to the release notes in the PR description to 1.4.2?

Thanks!

Done !
Sorry about that ^^

@zweckj zweckj added this to the 2025.10.2 milestone Oct 10, 2025
@zweckj zweckj merged commit 1e192aa into home-assistant:dev Oct 10, 2025
48 checks passed
chemelli74 pushed a commit to chemelli74/core that referenced this pull request Oct 10, 2025
frenck pushed a commit that referenced this pull request Oct 10, 2025
@frenck frenck mentioned this pull request Oct 10, 2025
@github-actions github-actions bot locked and limited conversation to collaborators Oct 11, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SharkIQ: No state returned from /authorize

6 participants