From 249344158c3123bff1c54225eb98e5f896852f53 Mon Sep 17 00:00:00 2001 From: robert Date: Mon, 20 Dec 2021 21:53:56 +0100 Subject: [PATCH] reformat code --- readHomematicIP.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/readHomematicIP.py b/readHomematicIP.py index 9777f33..3a947ce 100755 --- a/readHomematicIP.py +++ b/readHomematicIP.py @@ -8,7 +8,7 @@ import paho.mqtt.client as paho # MQTT credentials # mqtt_username = 'homeassistant' # MQTT client username # mqtt_password = '3355' # MQTT client password -client_id = 'homematicip-pi' # unique client_id +client_id = 'homematicip-pi' # unique client_id mqtt_broker = "raspberrypi" # broker address, usually your HASS IP address # create the MQTT client @@ -59,8 +59,8 @@ def heating_profile(group): print(profile.index + ": " + profile.name) if profile.name == "Home Office": - #print("Profile Index" + profile.index) - #print(group) + # print("Profile Index" + profile.index) + # print(group) group.set_active_profile(profile.index) @@ -68,7 +68,7 @@ def main(): global home home.get_current_state() for group in home.groups: - if group.groupType=="HEATING": + if group.groupType == "HEATING": heating_profile(group) if group.groupType == "META": for device in group.devices: