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

Get pending iCloud devices when available + request again when needs an update #32400

Merged
merged 4 commits into from
Mar 5, 2020

Conversation

Quentame
Copy link
Member

@Quentame Quentame commented Mar 2, 2020

Proposed change

Fetch devices again when retrieved devices are in pending status + add devices that was not added at first setup because can't be reached (most of the time : off laptop or family devices).

It is actually causing a bug while battery status and location are not updated for hours (thanks to less fetching the iCloud API) !!!

Issue #32303, bug from 0.104.0

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)
  • Breaking change (fix/feature causing existing functionality to break)
  • Code quality improvements to existing code or addition of tests

Additional information

Checklist

  • 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
  • The code has been formatted using Black (black --fast homeassistant tests)
  • Tests have been added to verify that the new code works.

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.
  • Untested files have been added to .coveragerc.

The integration reached or maintains the following Integration Quality Scale:

  • No score or internal
  • 🥈 Silver
  • 🥇 Gold
  • 🏆 Platinum

@Quentame Quentame force-pushed the icloud/retry-if-pending branch from 7ced2c9 to 5f2b967 Compare March 3, 2020 17:30
@Quentame Quentame requested a review from MartinHjelmare March 4, 2020 22:34
@Quentame
Copy link
Member Author

Quentame commented Mar 4, 2020

@balloob Can we add this to 0.106.6 since the bug is coming from 0.104.0 ?

@Quentame Quentame requested review from balloob and removed request for MartinHjelmare March 4, 2020 22:58
@balloob
Copy link
Member

balloob commented Mar 5, 2020

I'm fine with adding this to 106.6, I however don't know when it will be released.

@balloob balloob added this to the 0.106.6 milestone Mar 5, 2020
@Quentame Quentame merged commit 85ba469 into home-assistant:dev Mar 5, 2020
@Quentame Quentame deleted the icloud/retry-if-pending branch March 5, 2020 07:50
balloob pushed a commit that referenced this pull request Mar 10, 2020
…an update (#32400)

* Fetch iCloud devices again if the status is pending

* Remove "No iCloud device found" double check

* fix default api_devices value

* Remove useless unitialisation declarations
@balloob balloob mentioned this pull request Mar 10, 2020
@lock lock bot locked and limited conversation to collaborators Mar 10, 2020
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.

iCloud devices entities are not updated while devices are pending
3 participants