`
: ""}
+ ${canImportKeychain
+ ? html`
+ Send credentials to phone
+
`
+ : ""}
`;
}
+ private _sendCredentials() {
+ if (!this._otbrInfo) {
+ return;
+ }
+ this.hass.auth.external!.fireMessage({
+ type: "thread/store_in_platform_keychain",
+ payload: {
+ mac_extended_address: this._otbrInfo.extended_address,
+ border_agent_id: this._otbrInfo.border_agent_id ?? "",
+ active_operational_dataset: this._otbrInfo.active_dataset_tlvs ?? "",
+ },
+ });
+ }
+
private async _showDatasetInfo(ev: Event) {
const network = (ev.currentTarget as any).network as ThreadNetwork;
showThreadDatasetDialog(this, { network, otbrInfo: this._otbrInfo });