Skip to content

Commit

Permalink
black formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
rrooggiieerr committed Jun 16, 2024
1 parent 2243da2 commit 4b2d9a0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions rfcontrol/controller.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Python port of the original CoffeeScript/nodejs code
"""

import glob
import logging
from os.path import basename, dirname, isfile, join
Expand Down
1 change: 1 addition & 0 deletions rfcontrol/helpers.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Python port of the original CoffeeScript/nodejs code
"""

import logging

logger = logging.getLogger(__name__)
Expand Down
5 changes: 3 additions & 2 deletions rfcontrol/protocols/_skeleton.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Use this skeleton protocol to implement new protocols
"""

import logging

from rfcontrol.helpers import binary2pulses, pulses2binary
Expand All @@ -27,11 +28,11 @@ def decode(pulses):

# We first map the sequences to binary.
binary = pulses2binary(pulses, pulses2binary_mapping)

if binary is None:
return None

# Binary is now something like:
# Binary is now something like:
#

# Now we extract the data from that string.
Expand Down
2 changes: 1 addition & 1 deletion rfcontrol/protocols/pir6.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

def decode(pulses):
# Pulses is something like:
#
#

# We first map the sequences to binary.
binary = pulses2binary(pulses, pulses2binary_mapping)
Expand Down

0 comments on commit 4b2d9a0

Please sign in to comment.