Skip to content

Commit

Permalink
Work around for issue #3.
Browse files Browse the repository at this point in the history
  • Loading branch information
yangqian committed May 4, 2021
1 parent edcee9e commit 6546cfb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions custom_components/gelight/light.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import homeassistant.helpers.config_validation as cv
from homeassistant.util import color as colorutil
from time import time
from time import sleep
import dimond
import threading
from homeassistant.helpers.event import async_track_time_interval
Expand Down Expand Up @@ -325,6 +326,7 @@ def send_packet(self, id, command, params):
self.link.send_packet(id, command, params)
except:
pass
sleep(0.05)
self.lock.release()

def update_status(self):
Expand Down

0 comments on commit 6546cfb

Please sign in to comment.