From 0e4d2455bb4e8da6c6469c55584ce45a217f20c8 Mon Sep 17 00:00:00 2001 From: Alex Orid Date: Wed, 7 Apr 2021 16:39:59 -0400 Subject: [PATCH] Fixed Typo --- lights_module.py | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/lights_module.py b/lights_module.py index f7ddea6..ebfa7b1 100644 --- a/lights_module.py +++ b/lights_module.py @@ -14,13 +14,13 @@ class Lights_Module(): def main(self): print("Starting up Lights_Modules....") - self.b.connect + self.bridge_.connect() - self.b.get_api() + self.bridge_.get_api() - light_list = self.b.lights + light_list = self.bridge_.lights group_list:list = [] - groups = self.b.get_group() + groups = self.bridge_.get_group() groupCount = 0 print("\n -Listing Lights...") @@ -35,17 +35,17 @@ class Lights_Module(): for gc in range(groupCount): try: print("group n:" + str(gc)) - group = self.b.get_group(gc ,'name') + group = self.bridge_.get_group(gc ,'name') print(group) #group_list.append(group) print(" --done adding") except: print(" --adding failed") - #self.b.set_group(18, "bri", 254) #This is max Brightness - #self.b.set_group(18, "on", True) #This is will turn ON + #self.bridge_.set_group(18, "bri", 254) #This is max Brightness + #self.bridge_.set_group(18, "on", True) #This is will turn ON #xy_result = self.rgb_to_xy(0,0,1) #This will take an rgb value and make it xy - #self.b.set_group(16, "xy", xy_result) #This will make the lights in the group turn blue + #self.bridge_.set_group(16, "xy", xy_result) #This will make the lights in the group turn blue # The Following will make a rave #for rave in range(10): @@ -53,14 +53,14 @@ class Lights_Module(): #rgb_g = random.random() #rgb_b = random.random() #xy_result = self.rgb_to_xy(rgb_r, rgb_g, rgb_b) #This will take an rgb value and make it xy - #self.b.set_group(16, "xy", xy_result) + #self.bridge_.set_group(16, "xy", xy_result) #sleep(0.1) - #for stuffz in b.scenes: + #for stuffz in .bridge_.scenes: #print(stuffz) # This will set the group Downstairs to the Stream scene - #self.b.run_scene("Downstairs", "Stream") + #self.bridge_.run_scene("Downstairs", "Stream") print("\n Setup Complete")