Skip to content

Commit 02d49a9

Browse files
committed
Secrets Cleanup: C and E - change wave updates, remove pylint comment too new
1 parent 1082a37 commit 02d49a9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

CircuitPython_WeatherCloud/code.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
button = digitalio.DigitalInOut(board.A1)
2222
button.switch_to_input(pull=digitalio.Pull.UP)
2323

24-
wave_file = open("sound/Rain.wav", "rb") # pylint: disable=consider-using-with
24+
wave_file = open("sound/Rain.wav", "rb")
2525
wave = audiocore.WaveFile(wave_file)
2626
audio = audioio.AudioOut(board.A0)
2727

@@ -159,7 +159,7 @@
159159
wave_filename = "sound/Snow.wav"
160160
snowing = True
161161
if wave_filename:
162-
wave_file = open(wave_filename, "rb") # pylint: disable=consider-using-with
162+
wave_file = open(wave_filename, "rb")
163163
wave = audiocore.WaveFile(wave_file)
164164
has_sound = True
165165
weather_refresh = time.monotonic()
@@ -212,7 +212,7 @@
212212
elif Thunder == 2:
213213
wave_filename = "sound/Thunderstorm2.wav"
214214
if wave_filename:
215-
wave_file = open(wave_filename, "rb") # pylint: disable=consider-using-with
215+
wave_file = open(wave_filename, "rb")
216216
wave = audiocore.WaveFile(wave_file)
217217
audio.play(wave)
218218
next_bolt_time = time.monotonic() + random.randint(5, 15) # between 5 and 15 s

0 commit comments

Comments
 (0)