-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Add basic nodes list & node metadata to OZW config panel #6719
Conversation
src/panels/config/integrations/integration-panels/ozw/ozw-config-network.ts
Show resolved
Hide resolved
src/panels/config/integrations/integration-panels/ozw/ozw-config-network.ts
Outdated
Show resolved
Hide resolved
src/panels/config/integrations/integration-panels/ozw/ozw-config-node.ts
Outdated
Show resolved
Hide resolved
src/panels/config/integrations/integration-panels/ozw/ozw-config-node.ts
Outdated
Show resolved
Hide resolved
src/panels/config/integrations/integration-panels/ozw/ozw-network-dashboard.ts
Outdated
Show resolved
Hide resolved
src/panels/config/integrations/integration-panels/ozw/ozw-network-dashboard.ts
Outdated
Show resolved
Hide resolved
src/panels/config/integrations/integration-panels/ozw/ozw-network-dashboard.ts
Outdated
Show resolved
Hide resolved
src/panels/config/integrations/integration-panels/ozw/ozw-network-dashboard.ts
Outdated
Show resolved
Hide resolved
src/panels/config/integrations/integration-panels/ozw/ozw-network-nodes.ts
Outdated
Show resolved
Hide resolved
src/panels/config/integrations/integration-panels/ozw/ozw-network-nodes.ts
Outdated
Show resolved
Hide resolved
src/panels/config/integrations/integration-panels/ozw/ozw-network-nodes.ts
Outdated
Show resolved
Hide resolved
src/panels/config/integrations/integration-panels/ozw/ozw-network-nodes.ts
Outdated
Show resolved
Hide resolved
src/panels/config/integrations/integration-panels/ozw/ozw-config-network.ts
Outdated
Show resolved
Hide resolved
src/panels/config/integrations/integration-panels/ozw/ozw-config-network.ts
Outdated
Show resolved
Hide resolved
src/panels/config/integrations/integration-panels/ozw/ozw-config-network.ts
Outdated
Show resolved
Hide resolved
src/panels/config/integrations/integration-panels/ozw/ozw-config-network.ts
Outdated
Show resolved
Hide resolved
src/panels/config/integrations/integration-panels/ozw/ozw-config-node.ts
Outdated
Show resolved
Hide resolved
src/panels/config/integrations/integration-panels/ozw/ozw-config-network.ts
Outdated
Show resolved
Hide resolved
src/panels/config/integrations/integration-panels/ozw/ozw-network-dashboard.ts
Outdated
Show resolved
Hide resolved
src/panels/config/integrations/integration-panels/ozw/ozw-network-dashboard.ts
Outdated
Show resolved
Hide resolved
src/panels/config/integrations/integration-panels/ozw/ozw-network-router.ts
Outdated
Show resolved
Hide resolved
src/panels/config/integrations/integration-panels/ozw/ozw-node-dashboard.ts
Outdated
Show resolved
Hide resolved
src/panels/config/integrations/integration-panels/ozw/ozw-node-dashboard.ts
Outdated
Show resolved
Hide resolved
src/panels/config/integrations/integration-panels/ozw/ozw-node-dashboard.ts
Outdated
Show resolved
Hide resolved
this._node = await fetchOZWNodeStatus( | ||
this.hass!, | ||
this.ozwInstance, | ||
this.nodeId | ||
); | ||
this._metadata = await fetchOZWNodeMetadata( | ||
this.hass!, | ||
this.ozwInstance, | ||
this.nodeId | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What will happen when we request a node that no longer/not exists?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So this will not error but return None?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated to catch a not_found error and show the error page. I used a separate _not_found property to prevent a quick flash of the not found page on initial load before it finishes fetching the node data initially.
Proposed change
I'm currently having some issues I haven't been able to figure out with the
ozw-network-nodes
page and<ha-tabs-subpage-data-table>
giving an error thatResizeObserver loop limit exceeded
.I'd also love some tips on centrally managing the navigation tags (basically anything under ozw-network-router should have the same tabs, anything under ozw-node-router should have a separate set of tabs).
I'm also not fully convinced I'm managing the routers correctly... let me know if there's a better way to optimize or handle those.
Type of change
Checklist