From 966784877f5bcd81790f94d7fbc608756e358496 Mon Sep 17 00:00:00 2001 From: G Johansson Date: Sat, 5 Aug 2023 23:37:01 +0200 Subject: [PATCH] Remove long overdue deprecated service boost_heating from Hive (#97444) * Hive heating_boost deprecation * Remove strings * Remove service * services * Remove strings --- homeassistant/components/hive/climate.py | 21 --------------------- homeassistant/components/hive/services.yaml | 19 ------------------- homeassistant/components/hive/strings.json | 16 +--------------- 3 files changed, 1 insertion(+), 55 deletions(-) diff --git a/homeassistant/components/hive/climate.py b/homeassistant/components/hive/climate.py index 95304371e79..99de8b99675 100644 --- a/homeassistant/components/hive/climate.py +++ b/homeassistant/components/hive/climate.py @@ -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.""" diff --git a/homeassistant/components/hive/services.yaml b/homeassistant/components/hive/services.yaml index 96066246230..e2ad59852a3 100644 --- a/homeassistant/components/hive/services.yaml +++ b/homeassistant/components/hive/services.yaml @@ -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: diff --git a/homeassistant/components/hive/strings.json b/homeassistant/components/hive/strings.json index e2a3e9dc7e1..277a1aac754 100644 --- a/homeassistant/components/hive/strings.json +++ b/homeassistant/components/hive/strings.json @@ -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." } } },