From 84984b0223dc7c096e2c75aa1f284f761cf3f295 Mon Sep 17 00:00:00 2001 From: Khole Date: Mon, 10 May 2021 19:38:35 +0100 Subject: [PATCH] Bump Pyhiveapi (#50368) --- homeassistant/components/hive/manifest.json | 11 ++++++++--- homeassistant/components/hive/switch.py | 1 + homeassistant/components/hive/water_heater.py | 4 ++-- requirements_all.txt | 2 +- requirements_test_all.txt | 2 +- 5 files changed, 13 insertions(+), 7 deletions(-) diff --git a/homeassistant/components/hive/manifest.json b/homeassistant/components/hive/manifest.json index e09e06c8676..5f23eef642b 100644 --- a/homeassistant/components/hive/manifest.json +++ b/homeassistant/components/hive/manifest.json @@ -3,7 +3,12 @@ "name": "Hive", "config_flow": true, "documentation": "https://www.home-assistant.io/integrations/hive", - "requirements": ["pyhiveapi==0.4.1"], - "codeowners": ["@Rendili", "@KJonline"], + "requirements": [ + "pyhiveapi==0.4.2" + ], + "codeowners": [ + "@Rendili", + "@KJonline" + ], "iot_class": "cloud_polling" -} +} \ No newline at end of file diff --git a/homeassistant/components/hive/switch.py b/homeassistant/components/hive/switch.py index 1151fcf346b..7ad81a25f0e 100644 --- a/homeassistant/components/hive/switch.py +++ b/homeassistant/components/hive/switch.py @@ -84,3 +84,4 @@ class HiveDevicePlug(HiveEntity, SwitchEntity): """Update all Node data from Hive.""" await self.hive.session.updateData(self.device) self.device = await self.hive.switch.getSwitch(self.device) + self.attributes.update(self.device.get("attributes", {})) diff --git a/homeassistant/components/hive/water_heater.py b/homeassistant/components/hive/water_heater.py index cca919b81d6..b9377a378c3 100644 --- a/homeassistant/components/hive/water_heater.py +++ b/homeassistant/components/hive/water_heater.py @@ -139,9 +139,9 @@ class HiveWaterHeater(HiveEntity, WaterHeaterEntity): async def async_hot_water_boost(self, time_period, on_off): """Handle the service call.""" if on_off == "on": - await self.hive.hotwater.turnBoostOn(self.device, time_period) + await self.hive.hotwater.setBoostOn(self.device, time_period) elif on_off == "off": - await self.hive.hotwater.turnBoostOff(self.device) + await self.hive.hotwater.setBoostOff(self.device) async def async_update(self): """Update all Node data from Hive.""" diff --git a/requirements_all.txt b/requirements_all.txt index d211720f5cf..04531f6f0e5 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -1446,7 +1446,7 @@ pyheos==0.7.2 pyhik==0.2.8 # homeassistant.components.hive -pyhiveapi==0.4.1 +pyhiveapi==0.4.2 # homeassistant.components.homematic pyhomematic==0.1.72 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index ccfb5b9db3b..f91b249c477 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -790,7 +790,7 @@ pyhaversion==21.3.0 pyheos==0.7.2 # homeassistant.components.hive -pyhiveapi==0.4.1 +pyhiveapi==0.4.2 # homeassistant.components.homematic pyhomematic==0.1.72