Skip to content

Commit

Permalink
Update button.py
Browse files Browse the repository at this point in the history
  • Loading branch information
WillCodeForCats committed Feb 15, 2024
1 parent a59f35d commit aafc234
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/solaredge_modbus_multi/button.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ async def async_press(self) -> None:
await self._platform.write_registers(
address=61696, payload=builder.to_registers()
)
await asyncio.sleep(10) # Command execution time: 5-10 seconds
self._platform.read_once.append("CommitPwrCtlSettings")
await asyncio.sleep(10) # Command execution time: 5-10 seconds
await self.async_update()


Expand Down Expand Up @@ -150,6 +150,6 @@ async def async_press(self) -> None:
await self._platform.write_registers(
address=61697, payload=builder.to_registers()
)
await asyncio.sleep(6) # Command execution time: 3-6 seconds
self._platform.read_once.append("RestorePwrCtlDefaults")
await asyncio.sleep(6) # Command execution time: 3-6 seconds
await self.async_update()

0 comments on commit aafc234

Please sign in to comment.