From 24f35336dbd13e64af7872047ed1f8ccc68a6c84 Mon Sep 17 00:00:00 2001 From: Anne Barela <1911920+TheKitty@users.noreply.github.com> Date: Mon, 6 Jan 2020 11:39:41 -0500 Subject: [PATCH] minor lint tweaks --- PyPortal_MQTT_Control/code.py | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/PyPortal_MQTT_Control/code.py b/PyPortal_MQTT_Control/code.py index 0d581d2dc..92f1b8b98 100644 --- a/PyPortal_MQTT_Control/code.py +++ b/PyPortal_MQTT_Control/code.py @@ -97,13 +97,15 @@ BUTTON_MARGIN = 10 # Button Objects button_1 = Button(x=BUTTON_MARGIN, y=BUTTON_MARGIN, width=BUTTON_WIDTH, height=BUTTON_HEIGHT, - label="Button 1", label_font=font, style=Button.SHADOWROUNDRECT, label_color=0x505050, + label="Button 1", label_font=font, + style=Button.SHADOWROUNDRECT, label_color=0x505050, fill_color=0x9e9e9e, outline_color=0x464646) buttons.append(button_1) button_2 = Button(x=BUTTON_MARGIN, y=BUTTON_MARGIN*2+BUTTON_HEIGHT, width=BUTTON_WIDTH, height=BUTTON_HEIGHT, - label="Button 2", label_font=font, style=Button.SHADOWROUNDRECT, label_color=0x505050, + label="Button 2", label_font=font, + style=Button.SHADOWROUNDRECT, label_color=0x505050, fill_color=0x9e9e9e, outline_color=0x464646) buttons.append(button_2) @@ -197,11 +199,11 @@ wifi.connect() # Set up a MiniMQTT Client client = MQTT(socket, - broker = secrets['broker'], - port = 1883, - username = secrets['user'], - password = secrets['pass'], - network_manager = wifi) + broker = secrets['broker'], + port = 1883, + username = secrets['user'], + password = secrets['pass'], + network_manager = wifi) # Connect callback handlers to client client.on_connect = connect @@ -276,4 +278,4 @@ while True: client.publish(mqtt_temperature, temperature) print('Sending motion sensor value: %d' % movement_value) - client.publish(mqtt_PIR, '{}'.format(movement_value)) \ No newline at end of file + client.publish(mqtt_PIR, '{}'.format(movement_value))