BrightnessAction   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 4
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A run() 0 3 1
1
from lib import action
2
3
4
class BrightnessAction(action.BaseAction):
5
    def run(self, light_id, brightness, transition_time):
6
        light = self.hue.lights.get(light_id)
7
        light.bri(brightness, transition_time)
8