Skip to content

Commit

Permalink
renamed illuminance to brightness
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Nanko committed May 16, 2017
1 parent fa14eca commit 3096e46
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions xknx/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def unit_of_measurement(self):
return "%"
elif self.value_type == 'temperature':
return "°C"
elif self.value_type == 'illuminance':
elif self.value_type == 'brightness':
return "lx"
elif self.value_type == 'speed_ms':
return "m/s"
Expand All @@ -100,8 +100,8 @@ def resolve_state(self):
elif self.value_type == 'binary':
return self.binary_state()
elif self.value_type == 'temperature':
return DPTTemperature().from_knx(self.state.value)
elif self.value_type == 'illuminance':
return DPTTemperature().from_knx(self.state.value)
elif self.value_type == 'brightness':
return DPTLux().from_knx(self.state.value)
elif self.value_type == 'speed_ms':
return DPTWsp().from_knx(self.state.value)
Expand Down

0 comments on commit 3096e46

Please sign in to comment.