Skip to content

Commit

Permalink
Update mqtt_gateway.py
Browse files Browse the repository at this point in the history
The sleep is outside the loop. This lead on a raspberry to hit 100% just for the gateway
  • Loading branch information
michaelmittermair authored Jul 24, 2023
1 parent ea1444c commit a809d28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/mqtt/mqtt_gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,5 +212,5 @@ def set_dps(url):
last = time.time()
devices = getdevices()
get_status_all(devices)
# Slow down
time.sleep(0.1)
# Slow down
time.sleep(0.1)

0 comments on commit a809d28

Please sign in to comment.