Skip to content

Commit

Permalink
Update lux_helper.py
Browse files Browse the repository at this point in the history
Try fix #259
  • Loading branch information
BenPru authored Jul 8, 2024
1 parent 6ad33e6 commit 3abc4df
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion custom_components/luxtronik/lux_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import struct
import threading
import time
import asyncio

from async_timeout import timeout

Expand Down Expand Up @@ -276,7 +277,7 @@ def _write(self):
# Flush queue after writing all values
self.parameters.queue = {}
# Give the heatpump a short time to handle the value changes/calculations:
time.sleep(WAIT_TIME_WRITE_PARAMETER)
await asyncio.sleep(WAIT_TIME_WRITE_PARAMETER)

def _read_parameters(self):
data = []
Expand Down

0 comments on commit 3abc4df

Please sign in to comment.