Skip to content

Commit

Permalink
Coerce to float in Sensibo climate react custom service (#110508)
Browse files Browse the repository at this point in the history
  • Loading branch information
gjohansson-ST authored Feb 15, 2024
1 parent c424720 commit 619e7fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions homeassistant/components/sensibo/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,9 @@ async def async_setup_entry(
platform.async_register_entity_service(
SERVICE_ENABLE_CLIMATE_REACT,
{
vol.Required(ATTR_HIGH_TEMPERATURE_THRESHOLD): float,
vol.Required(ATTR_HIGH_TEMPERATURE_THRESHOLD): vol.Coerce(float),
vol.Required(ATTR_HIGH_TEMPERATURE_STATE): dict,
vol.Required(ATTR_LOW_TEMPERATURE_THRESHOLD): float,
vol.Required(ATTR_LOW_TEMPERATURE_THRESHOLD): vol.Coerce(float),
vol.Required(ATTR_LOW_TEMPERATURE_STATE): dict,
vol.Required(ATTR_SMART_TYPE): vol.In(
["temperature", "feelsLike", "humidity"]
Expand Down

0 comments on commit 619e7fb

Please sign in to comment.