Skip to content

Commit 4ee7567

Browse files
committed
changes for pylint and black
1 parent 69ecf36 commit 4ee7567

5 files changed

+19
-11
lines changed

examples/esp_atcontrol_AIO_no_wifimanager-enterprise.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@
1414

1515

1616
# ESP32 AT
17-
from adafruit_espatcontrol import (
18-
adafruit_espatcontrol)
17+
from adafruit_espatcontrol import adafruit_espatcontrol
1918

2019

2120
# Get wifi details and more from a secrets.py file
@@ -44,7 +43,9 @@
4443
TX = board.RX
4544
resetpin = DigitalInOut(board.D4)
4645
rtspin = DigitalInOut(board.D5)
47-
uart = busio.UART(board.TX, board.RX, baudrate=11520, timeout=0.1, receiver_buffer_size=512)
46+
uart = busio.UART(
47+
board.TX, board.RX, baudrate=11520, timeout=0.1, receiver_buffer_size=512
48+
)
4849
esp_boot = DigitalInOut(board.D9)
4950
esp_boot.direction = Direction.OUTPUT
5051
esp_boot.value = True

examples/esp_atcontrol_AIO_wifimanager_enterprise.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@
5555
esp = adafruit_espatcontrol.ESP_ATcontrol(
5656
uart, 115200, reset_pin=resetpin, rts_pin=rtspin, debug=debugflag
5757
)
58-
wifi = adafruit_espatcontrol_wifimanager.ESPAT_WiFiManager(esp, secrets, status_light, enterprise=True, debug=debugflag)
58+
wifi = adafruit_espatcontrol_wifimanager.ESPAT_WiFiManager(
59+
esp, secrets, status_light, enterprise=True, debug=debugflag
60+
)
5961
wifi.disconnect()
6062
wifi.reset(soft_reset=True)
6163

@@ -89,4 +91,3 @@
8991
continue
9092
response = None
9193
time.sleep(15)
92-

examples/esp_atcontrol_countviewer_enterprise.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,10 @@
6565
# DATA_LOCATION = ["skulls"]
6666

6767
# Twitter followers
68-
DATA_SOURCE = "http://cdn.syndication.twimg.com/widgets/followbutton/info.json?" + \
69-
"screen_names=adafruit"
68+
DATA_SOURCE = (
69+
"http://cdn.syndication.twimg.com/widgets/followbutton/info.json?"
70+
+ "screen_names=adafruit"
71+
)
7072
DATA_LOCATION = [0, "followers_count"]
7173

7274
# Debug Level
@@ -91,7 +93,9 @@
9193
TX = board.RX
9294
resetpin = DigitalInOut(board.D4)
9395
rtspin = DigitalInOut(board.D5)
94-
uart = busio.UART(board.TX, board.RX, baudrate=11520, timeout=0.1, receiver_buffer_size=512)
96+
uart = busio.UART(
97+
board.TX, board.RX, baudrate=11520, timeout=0.1, receiver_buffer_size=512
98+
)
9599
esp_boot = DigitalInOut(board.D9)
96100
esp_boot.direction = Direction.OUTPUT
97101
esp_boot.value = True

examples/esp_atcontrol_simple_enterprise.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@
4040
TX = board.RX
4141
resetpin = DigitalInOut(board.D4)
4242
rtspin = DigitalInOut(board.D5)
43-
uart = busio.UART(board.TX, board.RX, baudrate=11520, timeout=0.1, receiver_buffer_size=512)
43+
uart = busio.UART(
44+
board.TX, board.RX, baudrate=11520, timeout=0.1, receiver_buffer_size=512
45+
)
4446
esp_boot = DigitalInOut(board.D9)
4547
esp_boot.direction = Direction.OUTPUT
4648
esp_boot.value = True
@@ -58,7 +60,7 @@
5860
esp.hard_reset()
5961
esp.soft_reset()
6062
esp.disconnect()
61-
#time.sleep(20)
63+
# time.sleep(20)
6264
esp.set_autoconnect(False)
6365

6466
requests.set_socket(socket, esp)

examples/secrets_enterprise.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@
1414
"github_token": "abcdefghij0123456789",
1515
"aio_username": "your-aio-username",
1616
"aio_key": "your-aio-key",
17-
}
17+
}

0 commit comments

Comments
 (0)