Skip to content

Commit 465a81d

Browse files
committed
rename to supported_subentry_types
1 parent 321a3ec commit 465a81d

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

demo/src/stubs/config_entries.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export const mockConfigEntries = (hass: MockHomeAssistant) => {
1111
supports_remove_device: false,
1212
supports_unload: true,
1313
supports_reconfigure: true,
14-
supported_subentry_flows: [],
14+
supported_subentry_types: {},
1515
pref_disable_new_entities: false,
1616
pref_disable_polling: false,
1717
disabled_by: null,

gallery/src/pages/misc/integration-card.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const createConfigEntry = (
3232
supports_remove_device: false,
3333
supports_unload: true,
3434
supports_reconfigure: true,
35-
supported_subentry_flows: [],
35+
supported_subentry_types: {},
3636
num_subentries: 0,
3737
disabled_by: null,
3838
pref_disable_new_entities: false,

src/data/config_entries.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export interface ConfigEntry {
1919
supports_remove_device: boolean;
2020
supports_unload: boolean;
2121
supports_reconfigure: boolean;
22-
supported_subentry_flows: {
22+
supported_subentry_types: {
2323
[key: string]: { supports_reconfigure: boolean };
2424
};
2525
num_subentries: number;

src/panels/config/integrations/ha-config-integration-page.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -940,7 +940,7 @@ class HaConfigIntegrationPage extends SubscribeMixin(LitElement) {
940940
)}
941941
</ha-md-menu-item>
942942
943-
${Object.keys(item.supported_subentry_flows).map(
943+
${Object.keys(item.supported_subentry_types).map(
944944
(flowType) =>
945945
html`<ha-md-menu-item
946946
@click=${this._addSubEntry}
@@ -1065,7 +1065,7 @@ class HaConfigIntegrationPage extends SubscribeMixin(LitElement) {
10651065
subEntry
10661066
)}</span
10671067
>
1068-
${configEntry.supported_subentry_flows[subEntry.subentry_type]
1068+
${configEntry.supported_subentry_types[subEntry.subentry_type]
10691069
?.supports_reconfigure
10701070
? html`
10711071
<ha-button slot="end" @click=${this._handleReconfigureSub}>

src/panels/config/integrations/ha-config-integrations-dashboard.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ class HaConfigIntegrationsDashboard extends SubscribeMixin(LitElement) {
204204
supports_remove_device: false,
205205
supports_unload: false,
206206
supports_reconfigure: false,
207-
supported_subentry_flows: [],
207+
supported_subentry_types: {},
208208
num_subentries: 0,
209209
pref_disable_new_entities: false,
210210
pref_disable_polling: false,

0 commit comments

Comments
 (0)