Added if to discovery main
This commit is contained in:
parent
5665d57191
commit
f2883531df
|
@ -27,5 +27,6 @@ class FlickerstripDiscoveryClient:
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
client = FlickerstripDiscoveryClient()
|
client = FlickerstripDiscoveryClient()
|
||||||
flickerstrips = client.discover()
|
flickerstrips = client.discover()
|
||||||
|
if len(flickerstrips) > 0:
|
||||||
flickerstrips[0].force_update()
|
flickerstrips[0].force_update()
|
||||||
print(json.dumps(flickerstrips[0].status.to_json()))
|
print(json.dumps(flickerstrips[0].status.to_json()))
|
||||||
|
|
Loading…
Reference in New Issue