From 2ebc1901abb8b4e1fadcef44ae9d5509f9b8052a Mon Sep 17 00:00:00 2001 From: Khole Date: Sun, 29 Sep 2019 10:38:43 +0100 Subject: [PATCH] Change hive hotwater to hot_water + bug fix (#27038) * Updated hotwater to hot_water + bug fix * Updated version seperating dependancy --- homeassistant/components/hive/__init__.py | 12 ++++++------ homeassistant/components/hive/manifest.json | 2 +- homeassistant/components/hive/services.yaml | 2 +- requirements_all.txt | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/homeassistant/components/hive/__init__.py b/homeassistant/components/hive/__init__.py index c11eb18acca..3301097bab7 100644 --- a/homeassistant/components/hive/__init__.py +++ b/homeassistant/components/hive/__init__.py @@ -23,7 +23,7 @@ _LOGGER = logging.getLogger(__name__) DOMAIN = "hive" DATA_HIVE = "data_hive" SERVICES = ["Heating", "HotWater"] -SERVICE_BOOST_HOTWATER = "boost_hotwater" +SERVICE_BOOST_HOT_WATER = "boost_hot_water" SERVICE_BOOST_HEATING = "boost_heating" ATTR_TIME_PERIOD = "time_period" ATTR_MODE = "on_off" @@ -59,7 +59,7 @@ BOOST_HEATING_SCHEMA = vol.Schema( } ) -BOOST_HOTWATER_SCHEMA = vol.Schema( +BOOST_HOT_WATER_SCHEMA = vol.Schema( { vol.Required(ATTR_ENTITY_ID): cv.entity_id, vol.Optional(ATTR_TIME_PERIOD, default="00:30:00"): vol.All( @@ -100,7 +100,7 @@ def setup(hass, config): session.heating.turn_boost_on(node_id, minutes, temperature) - def hotwater_boost(service): + def hot_water_boost(service): """Handle the service call.""" node_id = HiveSession.entity_lookup.get(service.data[ATTR_ENTITY_ID]) if not node_id: @@ -151,9 +151,9 @@ def setup(hass, config): if ha_type == "water_heater": hass.services.register( DOMAIN, - SERVICE_BOOST_HEATING, - hotwater_boost, - schema=BOOST_HOTWATER_SCHEMA, + SERVICE_BOOST_HOT_WATER, + hot_water_boost, + schema=BOOST_HOT_WATER_SCHEMA, ) return True diff --git a/homeassistant/components/hive/manifest.json b/homeassistant/components/hive/manifest.json index 2e7c4f4f179..d9fae3fe54b 100644 --- a/homeassistant/components/hive/manifest.json +++ b/homeassistant/components/hive/manifest.json @@ -3,7 +3,7 @@ "name": "Hive", "documentation": "https://www.home-assistant.io/components/hive", "requirements": [ - "pyhiveapi==0.2.19" + "pyhiveapi==0.2.19.2" ], "dependencies": [], "codeowners": [ diff --git a/homeassistant/components/hive/services.yaml b/homeassistant/components/hive/services.yaml index 27d7acfc83b..6513d76ca89 100644 --- a/homeassistant/components/hive/services.yaml +++ b/homeassistant/components/hive/services.yaml @@ -14,7 +14,7 @@ boost_heating: description: Set the target temperature for the boost period., example: "20.5", } -boost_hotwater: +boost_hot_water: description: "Set the boost mode ON or OFF defining the period of time for the boost." fields: diff --git a/requirements_all.txt b/requirements_all.txt index 9b814ef8edd..79313b48e61 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -1223,7 +1223,7 @@ pyheos==0.6.0 pyhik==0.2.3 # homeassistant.components.hive -pyhiveapi==0.2.19 +pyhiveapi==0.2.19.2 # homeassistant.components.homematic pyhomematic==0.1.60