Skip to content

Allow ZHA device creation for the Zigbee coordinator#31032

Merged
dmulcahey merged 3 commits into
home-assistant:devfrom
dmulcahey:dm/zha-cordinator-device-test
Jan 21, 2020
Merged

Allow ZHA device creation for the Zigbee coordinator#31032
dmulcahey merged 3 commits into
home-assistant:devfrom
dmulcahey:dm/zha-cordinator-device-test

Conversation

@dmulcahey
Copy link
Copy Markdown
Contributor

@dmulcahey dmulcahey commented Jan 20, 2020

Description:

This PR removes the restriction that was in place preventing the creation of a ZHA device for the Zigbee coordinator. This fixes a hard error on the OOTB devices page when attempting to load device triggers and actions if someone selects the coordinator and it allows us to interact with the coordinator in group management in the ZHA configuration panel

DO NOT MERGE WITHOUT UI PR: home-assistant/frontend#4541

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][dev-checklist]

@probot-home-assistant
Copy link
Copy Markdown

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

Copy link
Copy Markdown
Contributor

@Adminiuga Adminiuga left a comment

Choose a reason for hiding this comment

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

Looks good. The only question: should we allow a really determined user to remove coordinator using zha.remove service ?

@dmulcahey
Copy link
Copy Markdown
Contributor Author

Argh I’ll protect that one too

@Adminiuga
Copy link
Copy Markdown
Contributor

well, it is not that you can accidentally remove it. For zha.remove you need to copy'n'paste coordinator's IEEE address, but lets protect it anyway for now.

@dmulcahey
Copy link
Copy Markdown
Contributor Author

Agreed, I’ll do it in a bit.

@dmulcahey
Copy link
Copy Markdown
Contributor Author

ok I am confused.... I already did it...

@Adminiuga
Copy link
Copy Markdown
Contributor

yep, I guess I missed the very 1st file 🤦‍♂

@dmulcahey dmulcahey merged commit 41014d7 into home-assistant:dev Jan 21, 2020
@lock lock Bot locked and limited conversation to collaborators Jan 24, 2020
@dmulcahey dmulcahey deleted the dm/zha-cordinator-device-test branch March 26, 2020 11:19
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.

3 participants