Skip to content

Fix deCONZ update entry from Hassio discovery#31015

Merged
balloob merged 2 commits into
devfrom
frenck-2020-0104
Jan 20, 2020
Merged

Fix deCONZ update entry from Hassio discovery#31015
balloob merged 2 commits into
devfrom
frenck-2020-0104

Conversation

@frenck
Copy link
Copy Markdown
Member

@frenck frenck commented Jan 20, 2020

Description:

The deCONZ integration check for existing entries based on hass.data when an Hass.io deCONZ is discovered. However, that doesn't have to be set up yet causing a new instance to be discovered, which is incorrect.

Instead, it should have updated the existing entry.

This PR addresses the issue to not rely on hass.data but use the set up config_entries in Home Assistant itself.

Related issue (if applicable): fixes home-assistant/addons#1007

Checklist:

  • The code change is tested and works locally.
  • Local tests pass with tox. Your PR cannot be merged unless tests pass
  • There is no commented out code in this PR.
  • I have followed the development checklist

@frenck frenck added this to the 0.104.3 milestone Jan 20, 2020
@frenck frenck requested a review from Kane610 as a code owner January 20, 2020 15:19
@probot-home-assistant probot-home-assistant Bot added integration: deconz small-pr PRs with less than 30 lines. labels Jan 20, 2020
@probot-home-assistant
Copy link
Copy Markdown

Hey there @Kane610, mind taking a look at this pull request as its been labeled with a integration (deconz) you are listed as a codeowner for? Thanks!

@balloob balloob merged commit 6cf20fc into dev Jan 20, 2020
@delete-merged-branch delete-merged-branch Bot deleted the frenck-2020-0104 branch January 20, 2020 16:18
@Kane610
Copy link
Copy Markdown
Member

Kane610 commented Jan 20, 2020

Yes of course... Thanks Frenck for catching that!

frenck added a commit that referenced this pull request Jan 21, 2020
* Fix deCONZ update entry from Hassio discovery

* Empty commit to re-trigger build
@frenck frenck mentioned this pull request Jan 21, 2020
@lock lock Bot locked and limited conversation to collaborators Jan 24, 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.

Deconz not discovered after reboot

5 participants