Consistently type/coerce climate humidity to be an int (#61456)

This commit is contained in:
J. Nick Koston 2022-01-05 15:09:43 -10:00 committed by GitHub
parent caaa1b32c1
commit c16794968f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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],
)