Remove long overdue deprecated service boost_heating from Hive (#97444)
* Hive heating_boost deprecation * Remove strings * Remove service * services * Remove strings
This commit is contained in:
parent
8195c9d1a7
commit
966784877f
3 changed files with 1 additions and 55 deletions
|
@ -66,19 +66,6 @@ async def async_setup_entry(
|
|||
|
||||
platform = entity_platform.async_get_current_platform()
|
||||
|
||||
platform.async_register_entity_service(
|
||||
"boost_heating",
|
||||
{
|
||||
vol.Required(ATTR_TIME_PERIOD): vol.All(
|
||||
cv.time_period,
|
||||
cv.positive_timedelta,
|
||||
lambda td: td.total_seconds() // 60,
|
||||
),
|
||||
vol.Optional(ATTR_TEMPERATURE, default="25.0"): vol.Coerce(float),
|
||||
},
|
||||
"async_heating_boost",
|
||||
)
|
||||
|
||||
platform.async_register_entity_service(
|
||||
SERVICE_BOOST_HEATING_ON,
|
||||
{
|
||||
|
@ -137,14 +124,6 @@ class HiveClimateEntity(HiveEntity, ClimateEntity):
|
|||
temperature = curtemp + 0.5
|
||||
await self.hive.heating.setBoostOn(self.device, 30, temperature)
|
||||
|
||||
async def async_heating_boost(self, time_period, temperature):
|
||||
"""Handle boost heating service call."""
|
||||
_LOGGER.warning(
|
||||
"Hive Service heating_boost will be removed in 2021.7.0, please update to"
|
||||
" heating_boost_on"
|
||||
)
|
||||
await self.async_heating_boost_on(time_period, temperature)
|
||||
|
||||
@refresh_system
|
||||
async def async_heating_boost_on(self, time_period, temperature):
|
||||
"""Handle boost heating service call."""
|
||||
|
|
|
@ -1,22 +1,3 @@
|
|||
boost_heating:
|
||||
target:
|
||||
entity:
|
||||
integration: hive
|
||||
domain: climate
|
||||
fields:
|
||||
time_period:
|
||||
required: true
|
||||
example: 01:30:00
|
||||
selector:
|
||||
time:
|
||||
temperature:
|
||||
default: 25.0
|
||||
selector:
|
||||
number:
|
||||
min: 7
|
||||
max: 35
|
||||
step: 0.5
|
||||
unit_of_measurement: °
|
||||
boost_heating_on:
|
||||
target:
|
||||
entity:
|
||||
|
|
|
@ -58,20 +58,6 @@
|
|||
}
|
||||
},
|
||||
"services": {
|
||||
"boost_heating": {
|
||||
"name": "Boost heating (to be deprecated)",
|
||||
"description": "To be deprecated please use boost_heating_on.",
|
||||
"fields": {
|
||||
"time_period": {
|
||||
"name": "Time period",
|
||||
"description": "Set the time period for the boost."
|
||||
},
|
||||
"temperature": {
|
||||
"name": "Temperature",
|
||||
"description": "Set the target temperature for the boost period."
|
||||
}
|
||||
}
|
||||
},
|
||||
"boost_heating_on": {
|
||||
"name": "Boost heating on",
|
||||
"description": "Sets the boost mode ON defining the period of time and the desired target temperature for the boost.",
|
||||
|
@ -82,7 +68,7 @@
|
|||
},
|
||||
"temperature": {
|
||||
"name": "Temperature",
|
||||
"description": "[%key:component::hive::services::boost_heating::fields::temperature::description%]"
|
||||
"description": "Set the target temperature for the boost period."
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue