Skip to content

Commit

Permalink
pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
attdona committed Oct 4, 2017
1 parent 22b8288 commit a5ad0c9
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions recipes/cc3200/switch_led.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import socket
"""Simple demo for switching board leds
"""
import click
import pynais as ns
from commands import Leds
Expand All @@ -10,6 +11,8 @@
default=True)
@click.option('--off', 'value', flag_value='off')
def main(color, value):
"""Starter
"""
leds = Leds()
setattr(leds, color, value)

Expand All @@ -20,6 +23,6 @@ def main(color, value):

print(response)


main()

#pylint: disable=E1120
if __name__ == '__main__':
main()

0 comments on commit a5ad0c9

Please sign in to comment.