Skip to content

Commit

Permalink
use preferred of dataset if available
Browse files Browse the repository at this point in the history
  • Loading branch information
bramkragten committed May 7, 2024
1 parent b23dea1 commit 9aee3db
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,11 @@ class DialogThreadDataset extends LitElement implements HassDialog {
type: "thread/store_in_platform_keychain",
payload: {
mac_extended_address:
this._params?.network.dataset?.preferred_extended_address ||
this._params!.network.routers![0]!.extended_address,
border_agent_id: this._params!.network.routers![0]!.border_agent_id,
border_agent_id:
this._params?.network.dataset?.preferred_border_agent_id ||
this._params!.network.routers![0]!.border_agent_id,
active_operational_dataset: this._params!.otbrInfo!.active_dataset_tlvs,
},
});
Expand Down

0 comments on commit 9aee3db

Please sign in to comment.