Bump Pyhiveapi (#50368)

pull/50437/head
Khole 2021-05-10 19:38:35 +01:00 committed by GitHub
parent baacf1b787
commit 84984b0223
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 13 additions and 7 deletions

View File

@ -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"
}
}

View File

@ -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", {}))

View File

@ -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."""

View File

@ -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

View File

@ -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