mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 09:46:36 +00:00
Tell mobile app to scan for Improv devices when 'Add Integration' tap (#21420)
This commit is contained in:
parent
677cffd650
commit
7fed4e6b37
@ -128,6 +128,9 @@ interface EMOutgoingMessageAssistShow extends EMMessage {
|
||||
start_listening: boolean;
|
||||
};
|
||||
}
|
||||
interface EMOutgoingMessageImprovScan extends EMMessage {
|
||||
type: "improv/scan";
|
||||
}
|
||||
|
||||
interface EMOutgoingMessageThreadStoreInPlatformKeychain extends EMMessage {
|
||||
type: "thread/store_in_platform_keychain";
|
||||
@ -156,7 +159,8 @@ type EMOutgoingMessageWithoutAnswer =
|
||||
| EMOutgoingMessageSidebarShow
|
||||
| EMOutgoingMessageTagWrite
|
||||
| EMOutgoingMessageThemeUpdate
|
||||
| EMOutgoingMessageThreadStoreInPlatformKeychain;
|
||||
| EMOutgoingMessageThreadStoreInPlatformKeychain
|
||||
| EMOutgoingMessageImprovScan;
|
||||
|
||||
interface EMIncomingMessageRestart {
|
||||
id: number;
|
||||
@ -252,6 +256,7 @@ export interface ExternalConfig {
|
||||
canTransferThreadCredentialsToKeychain: boolean;
|
||||
hasAssist: boolean;
|
||||
hasBarCodeScanner: number;
|
||||
canSetupImprov: boolean;
|
||||
}
|
||||
|
||||
export class ExternalMessaging {
|
||||
|
@ -593,6 +593,11 @@ class HaConfigIntegrationsDashboard extends SubscribeMixin(LitElement) {
|
||||
showAddIntegrationDialog(this, {
|
||||
initialFilter: this._filter,
|
||||
});
|
||||
if (this.hass.auth.external?.config.canSetupImprov) {
|
||||
this.hass.auth.external!.fireMessage({
|
||||
type: "improv/scan",
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
private _handleMenuAction(ev: CustomEvent<ActionDetail>) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user