Skip to content

Fetch manifests for discovered flows#8987

Merged
balloob merged 2 commits intodevfrom
fetch-manifest-flows-progress
Apr 26, 2021
Merged

Fetch manifests for discovered flows#8987
balloob merged 2 commits intodevfrom
fetch-manifest-flows-progress

Conversation

@balloob
Copy link
Copy Markdown
Member

@balloob balloob commented Apr 25, 2021

Breaking change

Proposed change

We didn't have access to manifests of discovered flows that have not been previously set up. This fixes it.

Before:

image

After:

image

Type of change

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

Example configuration

Additional information

  • This PR fixes or closes issue: fixes #
  • This PR is related to issue or discussion:
  • Link to documentation pull request:

Checklist

  • The code change is tested and works locally.
  • There is no commented out code in this PR.
  • Tests have been added to verify that the new code works.

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

Comment thread src/panels/config/integrations/ha-config-integrations.ts Outdated
} else {
this._extraFetchedManifests = new Set();
}
this._extraFetchedManifests.add(domain);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why do we keep track of this, to prevent double calls while we are already fetching?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yeah. If someone discovers 100 ESPHome devices, we should just stick with 1 call.

@balloob balloob merged commit b8d6b1e into dev Apr 26, 2021
@balloob balloob deleted the fetch-manifest-flows-progress branch April 26, 2021 14:33
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 27, 2021
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.

4 participants