Skip to content

Commit 19c5f0c

Browse files
committed
Fixing linting errors
1 parent 5db06d5 commit 19c5f0c

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

PyPortal_Azure_Plant_Monitor/azure_gfx_helper.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ def __init__(self, is_celsius=True):
3636
self._cwd = cwd
3737
self.set_icon(self._cwd+"/images/azure_splash.bmp")
3838

39-
def show_text(self):
4039
print('loading fonts...')
4140
glyphs = b'0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-,.: '
4241
data_glyphs = b'012345678-,.:/FC'
@@ -77,9 +76,9 @@ def show_text(self):
7776
self.azure_status_text.y = 225
7877
self._text_group.append(self.azure_status_text)
7978

79+
def show_text(self):
8080
board.DISPLAY.show(self._text_group)
8181

82-
8382
def display_azure_status(self, status_text):
8483
"""Displays the system status on the PyPortal
8584
:param str status_text: Description of Azure IoT status

PyPortal_Azure_Plant_Monitor/code.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
import azure_gfx_helper
2424

2525
# init. graphics helper
26-
gfx = azure_gfx_helper.Azure_GFX(is_celsius = True)
26+
gfx = azure_gfx_helper.Azure_GFX(is_celsius=True)
2727

2828
# Get wifi details and more from a secrets.py file
2929
try:
@@ -78,7 +78,7 @@
7878
# display soil sensor values on pyportal
7979
gfx.display_moisture(moisture_level)
8080
gfx.display_temp(temperature)
81-
81+
8282
print('Sending data to Azure')
8383
gfx.display_azure_status('Sending data...')
8484

0 commit comments

Comments
 (0)