Bump aioguardian (#37188)

* Bump aioguardian

* Fix tests
This commit is contained in:
Aaron Bach 2020-06-27 23:16:42 -06:00 committed by GitHub
parent 201dab93ff
commit b0df223f5a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 18 additions and 18 deletions

View file

@ -64,7 +64,7 @@ class GuardianSwitch(GuardianEntity, SwitchEntity):
"""Turn the valve off (closed)."""
try:
async with self._guardian.client:
await self._guardian.client.valve.valve_close()
await self._guardian.client.valve.close()
except GuardianError as err:
LOGGER.error("Error while closing the valve: %s", err)
return
@ -76,7 +76,7 @@ class GuardianSwitch(GuardianEntity, SwitchEntity):
"""Turn the valve on (open)."""
try:
async with self._guardian.client:
await self._guardian.client.valve.valve_open()
await self._guardian.client.valve.open()
except GuardianError as err:
LOGGER.error("Error while opening the valve: %s", err)
return