From 8b563120b5e678ca584bb933c6ef117b59430758 Mon Sep 17 00:00:00 2001 From: Jan Bouwhuis Date: Wed, 28 Jun 2023 12:22:56 +0200 Subject: [PATCH] Add comment for assumed trigger_type (#95432) * Add comment for assumed tigger_type * Update homeassistant/components/climate/device_trigger.py Co-authored-by: Erik Montnemery --------- Co-authored-by: Erik Montnemery --- homeassistant/components/climate/device_trigger.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/climate/device_trigger.py b/homeassistant/components/climate/device_trigger.py index 470c45aee70..0afd2485517 100644 --- a/homeassistant/components/climate/device_trigger.py +++ b/homeassistant/components/climate/device_trigger.py @@ -142,7 +142,7 @@ async def async_attach_trigger( numeric_state_config[ numeric_state_trigger.CONF_VALUE_TEMPLATE ] = "{{ state.attributes.current_temperature }}" - else: + else: # trigger_type == "current_humidity_changed" numeric_state_config[ numeric_state_trigger.CONF_VALUE_TEMPLATE ] = "{{ state.attributes.current_humidity }}"