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."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue