Skip to content

Commit

Permalink
Fix issue with valve open and close
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanruthe committed Jan 30, 2024
1 parent 9dfc7d5 commit 9a2041d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/phyn/devices/pp.py
Original file line number Diff line number Diff line change
Expand Up @@ -389,15 +389,15 @@ def __init__(self, device) -> None:

async def async_open_valve(self) -> None:
"""Open the valve."""
await self._device.api_client.device.open_valve(self._device.id)
await self._device.coordinator.api_client.device.open_valve(self._device.id)

def open_valve(self) -> None:
"""Open the valve."""
raise NotImplementedError()

async def async_close_valve(self) -> None:
"""Close the valve."""
await self._device.api_client.device.close_valve(self._device.id)
await self._device.coordinator.api_client.device.close_valve(self._device.id)

def close_valve(self) -> None:
"""Close valve."""
Expand Down

0 comments on commit 9a2041d

Please sign in to comment.