parent
201dab93ff
commit
b0df223f5a
7 changed files with 18 additions and 18 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue