From fec061f5d180a1448464cdd753c3824a885e49d9 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Fri, 17 Mar 2023 16:15:34 +0100 Subject: [PATCH] Extend attribute to hide from (numeric) state triggers (#15836) --- .../ha-automation-trigger-numeric_state.ts | 25 ++++++++++++++++++- .../types/ha-automation-trigger-state.ts | 23 +++++++++++++++++ 2 files changed, 47 insertions(+), 1 deletion(-) diff --git a/src/panels/config/automation/trigger/types/ha-automation-trigger-numeric_state.ts b/src/panels/config/automation/trigger/types/ha-automation-trigger-numeric_state.ts index 3d54f15cca..29cb0362cd 100644 --- a/src/panels/config/automation/trigger/types/ha-automation-trigger-numeric_state.ts +++ b/src/panels/config/automation/trigger/types/ha-automation-trigger-numeric_state.ts @@ -40,13 +40,16 @@ export class HaNumericStateTrigger extends LitElement { "available_modes", "away_mode", "changed_by", + "code_arm_required", "code_format", + "color_mode", "color_modes", "current_activity", "device_class", "editable", "effect_list", "effect", + "entity_id", "entity_picture", "fan_mode", "fan_modes", @@ -60,11 +63,20 @@ export class HaNumericStateTrigger extends LitElement { "hvac_mode", "hvac_modes", "icon", + "id", + "latest_version", + "max_color_temp_kelvin", + "max_mireds", + "max_temp", "media_album_name", "media_artist", "media_content_type", "media_position_updated_at", "media_title", + "min_color_temp_kelvin", + "min_mireds", + "min_temp", + "mode", "next_dawn", "next_dusk", "next_midnight", @@ -74,8 +86,11 @@ export class HaNumericStateTrigger extends LitElement { "operation_list", "operation_mode", "options", + "percentage_step", + "precipitation_unit", "preset_mode", "preset_modes", + "pressure_unit", "release_notes", "release_summary", "release_url", @@ -83,19 +98,27 @@ export class HaNumericStateTrigger extends LitElement { "rgb_color", "rgbw_color", "shuffle", + "skipped_version", "sound_mode_list", "sound_mode", "source_list", "source_type", "source", "state_class", + "step", + "supported_color_modes", "supported_features", "swing_mode", - "swing_mode", "swing_modes", + "target_temp_step", + "temperature_unit", "title", "token", "unit_of_measurement", + "user_id", + "uuid", + "visibility_unit", + "wind_speed_unit", "xy_color", ], }, diff --git a/src/panels/config/automation/trigger/types/ha-automation-trigger-state.ts b/src/panels/config/automation/trigger/types/ha-automation-trigger-state.ts index 2e6e67b18e..9c23f45caf 100644 --- a/src/panels/config/automation/trigger/types/ha-automation-trigger-state.ts +++ b/src/panels/config/automation/trigger/types/ha-automation-trigger-state.ts @@ -64,28 +64,51 @@ export class HaStateTrigger extends LitElement implements TriggerElement { hide_attributes: [ "access_token", "available_modes", + "code_arm_required", + "code_format", "color_modes", "device_class", "editable", "effect_list", + "entity_id", "entity_picture", "fan_modes", "fan_speed_list", "friendly_name", + "frontend_stream_type", "has_date", "has_time", "hvac_modes", "icon", + "id", + "max_color_temp_kelvin", + "max_mireds", + "max_temp", + "max", + "min_color_temp_kelvin", + "min_mireds", + "min_temp", + "min", + "mode", "operation_list", "options", + "percentage_step", + "precipitation_unit", "preset_modes", + "pressure_unit", "sound_mode_list", "source_list", "state_class", + "step", + "supported_color_modes", "supported_features", "swing_modes", + "target_temp_step", + "temperature_unit", "token", "unit_of_measurement", + "visibility_unit", + "wind_speed_unit", ], }, },