mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 10:47:10 +00:00
Consistently type/coerce climate humidity to be an int (#61456)
This commit is contained in:
parent
caaa1b32c1
commit
c16794968f
@ -138,7 +138,7 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
|
|||||||
)
|
)
|
||||||
component.async_register_entity_service(
|
component.async_register_entity_service(
|
||||||
SERVICE_SET_HUMIDITY,
|
SERVICE_SET_HUMIDITY,
|
||||||
{vol.Required(ATTR_HUMIDITY): vol.Coerce(float)},
|
{vol.Required(ATTR_HUMIDITY): vol.Coerce(int)},
|
||||||
"async_set_humidity",
|
"async_set_humidity",
|
||||||
[SUPPORT_TARGET_HUMIDITY],
|
[SUPPORT_TARGET_HUMIDITY],
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user