GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Passed
Push — master ( 4afdf5...77e65e )
by Benjamin
01:11
created

Node.set_button()   A

Complexity

Conditions 1

Size

Total Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 2
rs 10
cc 1
1
from bin.button import Button
2
from bin.led import Led
3
4
5
class Node(object):
6
7
    def __init__(self, button_bus, button_port, led_bus, led_port):
8
        self.button = self.set_button(button_bus, button_port)
9
        self.led = self.set_led(led_bus, led_port)
10
        self.active = False
11
12
    def set_button(self, button_bus, button_port):
13
        return Button(button_bus, button_port)
14
15
    def set_led(self, led_bus, led_port):
16
        return Led(led_bus, led_port)