mirror of
https://github.com/home-assistant/frontend.git
synced 2026-04-07 03:14:00 +00:00
Prefer Thread border router instance name (#22378)
Instead of using the model name (which is the same for all border routers of the same make and model), use the instance name as the border router name. Builds on https://github.com/home-assistant/core/pull/127253.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { HomeAssistant } from "../types";
|
||||
|
||||
export interface ThreadRouter {
|
||||
instance_name: string;
|
||||
addresses: [string];
|
||||
border_agent_id: string | null;
|
||||
brand: "google" | "apple" | "homeassistant";
|
||||
|
||||
@@ -234,7 +234,8 @@ export class ThreadConfigPanel extends SubscribeMixin(LitElement) {
|
||||
@error=${this._onImageError}
|
||||
@load=${this._onImageLoad}
|
||||
/>
|
||||
${router.model_name ||
|
||||
${router.instance_name ||
|
||||
router.model_name ||
|
||||
router.server?.replace(".local.", "") ||
|
||||
""}
|
||||
<span slot="secondary">${router.server}</span>
|
||||
|
||||
Reference in New Issue
Block a user