reformat code
This commit is contained in:
parent
5118791779
commit
249344158c
@ -59,8 +59,8 @@ def heating_profile(group):
|
|||||||
print(profile.index + ": " + profile.name)
|
print(profile.index + ": " + profile.name)
|
||||||
|
|
||||||
if profile.name == "Home Office":
|
if profile.name == "Home Office":
|
||||||
#print("Profile Index" + profile.index)
|
# print("Profile Index" + profile.index)
|
||||||
#print(group)
|
# print(group)
|
||||||
group.set_active_profile(profile.index)
|
group.set_active_profile(profile.index)
|
||||||
|
|
||||||
|
|
||||||
@ -68,7 +68,7 @@ def main():
|
|||||||
global home
|
global home
|
||||||
home.get_current_state()
|
home.get_current_state()
|
||||||
for group in home.groups:
|
for group in home.groups:
|
||||||
if group.groupType=="HEATING":
|
if group.groupType == "HEATING":
|
||||||
heating_profile(group)
|
heating_profile(group)
|
||||||
if group.groupType == "META":
|
if group.groupType == "META":
|
||||||
for device in group.devices:
|
for device in group.devices:
|
||||||
|
Loading…
Reference in New Issue
Block a user