Bump Pyhiveapi (#50368)

This commit is contained in:
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

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