From c16794968f68e2949f45d4e5a37fc82e41893866 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Wed, 5 Jan 2022 15:09:43 -1000 Subject: [PATCH] Consistently type/coerce climate humidity to be an int (#61456) --- homeassistant/components/climate/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/climate/__init__.py b/homeassistant/components/climate/__init__.py index ae1c434d342..b076e0db01a 100644 --- a/homeassistant/components/climate/__init__.py +++ b/homeassistant/components/climate/__init__.py @@ -138,7 +138,7 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool: ) component.async_register_entity_service( SERVICE_SET_HUMIDITY, - {vol.Required(ATTR_HUMIDITY): vol.Coerce(float)}, + {vol.Required(ATTR_HUMIDITY): vol.Coerce(int)}, "async_set_humidity", [SUPPORT_TARGET_HUMIDITY], )