Skip to content

Commit

Permalink
rename to supported_subentry_types
Browse files Browse the repository at this point in the history
  • Loading branch information
bramkragten committed Jan 7, 2025
1 parent 321a3ec commit 465a81d
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion demo/src/stubs/config_entries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const mockConfigEntries = (hass: MockHomeAssistant) => {
supports_remove_device: false,
supports_unload: true,
supports_reconfigure: true,
supported_subentry_flows: [],
supported_subentry_types: {},
pref_disable_new_entities: false,
pref_disable_polling: false,
disabled_by: null,
Expand Down
2 changes: 1 addition & 1 deletion gallery/src/pages/misc/integration-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const createConfigEntry = (
supports_remove_device: false,
supports_unload: true,
supports_reconfigure: true,
supported_subentry_flows: [],
supported_subentry_types: {},
num_subentries: 0,
disabled_by: null,
pref_disable_new_entities: false,
Expand Down
2 changes: 1 addition & 1 deletion src/data/config_entries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export interface ConfigEntry {
supports_remove_device: boolean;
supports_unload: boolean;
supports_reconfigure: boolean;
supported_subentry_flows: {
supported_subentry_types: {
[key: string]: { supports_reconfigure: boolean };
};
num_subentries: number;
Expand Down
4 changes: 2 additions & 2 deletions src/panels/config/integrations/ha-config-integration-page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -940,7 +940,7 @@ class HaConfigIntegrationPage extends SubscribeMixin(LitElement) {
)}
</ha-md-menu-item>
${Object.keys(item.supported_subentry_flows).map(
${Object.keys(item.supported_subentry_types).map(
(flowType) =>
html`<ha-md-menu-item
@click=${this._addSubEntry}
Expand Down Expand Up @@ -1065,7 +1065,7 @@ class HaConfigIntegrationPage extends SubscribeMixin(LitElement) {
subEntry
)}</span
>
${configEntry.supported_subentry_flows[subEntry.subentry_type]
${configEntry.supported_subentry_types[subEntry.subentry_type]
?.supports_reconfigure
? html`
<ha-button slot="end" @click=${this._handleReconfigureSub}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ class HaConfigIntegrationsDashboard extends SubscribeMixin(LitElement) {
supports_remove_device: false,
supports_unload: false,
supports_reconfigure: false,
supported_subentry_flows: [],
supported_subentry_types: {},
num_subentries: 0,
pref_disable_new_entities: false,
pref_disable_polling: false,
Expand Down

0 comments on commit 465a81d

Please sign in to comment.