Skip to content

Add network visualization to the ZHA config panel#7802

Merged
bramkragten merged 14 commits intohome-assistant:devfrom
dmulcahey:dm/zha-network-visualization
Nov 26, 2020
Merged

Add network visualization to the ZHA config panel#7802
bramkragten merged 14 commits intohome-assistant:devfrom
dmulcahey:dm/zha-network-visualization

Conversation

@dmulcahey
Copy link
Contributor

@dmulcahey dmulcahey commented Nov 24, 2020

Breaking change

Proposed change

This PR adds a network visualization to the ZHA configuration panel. We can replace this with ZigZag if that is desired when it is ready.

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:

@dmulcahey dmulcahey marked this pull request as ready for review November 24, 2020 22:20
if (this.hass) {
this._fetchData();
}
this._network = new Network(
Copy link
Member

Choose a reason for hiding this comment

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

You should make sure we are connected when creating this, as otherwise the height and width could not be set yet.

Copy link
Member

Choose a reason for hiding this comment

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

Or you should update it in onConnected when this._network is defined

@dmulcahey dmulcahey force-pushed the dm/zha-network-visualization branch from c6948d4 to ed0617e Compare November 26, 2020 21:38
@bramkragten bramkragten merged commit f093bd1 into home-assistant:dev Nov 26, 2020
@bramkragten bramkragten mentioned this pull request Nov 26, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Nov 27, 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.

4 participants