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()
|
||||||
flickerstrips[0].force_update()
|
if len(flickerstrips) > 0:
|
||||||
print(json.dumps(flickerstrips[0].status.to_json()))
|
flickerstrips[0].force_update()
|
||||||
|
print(json.dumps(flickerstrips[0].status.to_json()))
|
||||||
|
|
Loading…
Reference in New Issue