Skip to content

Commit 286f7e1

Browse files
committed
Whitespace fixes.
1 parent 2c43e1e commit 286f7e1

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

src/StreamDeck/Devices/StreamDeck.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ def key_count(self):
300300
:return: Number of physical buttons.
301301
"""
302302
return self.KEY_COUNT
303-
303+
304304
def touch_key_count(self):
305305
"""
306306
Retrieves number of touch buttons on the attached StreamDeck device.
@@ -393,7 +393,7 @@ def touchscreen_image_format(self):
393393
'flip': self.TOUCHSCREEN_FLIP,
394394
'rotation': self.TOUCHSCREEN_ROTATION,
395395
}
396-
396+
397397
def screen_image_format(self):
398398
"""
399399
Retrieves the image format accepted by the screen of the Stream
@@ -682,4 +682,4 @@ def set_screen_image(self, image):
682682
:param enumerable image: Raw data of the image to set on the button.
683683
If `None`, the screen will be cleared.
684684
"""
685-
pass
685+
pass

src/StreamDeck/Devices/StreamDeckNeo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,10 +170,10 @@ def set_key_image(self, key, image):
170170
def set_key_color(self, key, r, g, b):
171171
if min(max(key, 0), self.KEY_COUNT + self.TOUCH_KEY_COUNT - 1) != key:
172172
raise IndexError("Invalid touch key index {}.".format(key))
173-
173+
174174
if r > 255 or r < 0 or g > 255 or g < 0 or b > 255 or b < 0:
175175
raise ValueError("Invalid color")
176-
176+
177177
payload = bytearray(32)
178178
payload[0:6] = [0x03, 0x06, key, r, g, b]
179179
self.device.write_feature(payload)

src/StreamDeck/ImageHelpers/PILHelper.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,7 @@ def to_native_touchscreen_format(deck, image):
235235
"""
236236
return _to_native_format(image, deck.touchscreen_image_format())
237237

238+
238239
def to_native_screen_format(deck, image):
239240
"""
240241
Converts a given PIL image to the native screen image format for a StreamDeck,

0 commit comments

Comments
 (0)