Skip to content

Commit

Permalink
Some returns added.
Browse files Browse the repository at this point in the history
  • Loading branch information
syssi committed Sep 4, 2017
1 parent 07b1c88 commit ca10a8b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mirobo/fan.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ def humidity(self) -> int:
def temperature(self) -> float:
if self.data["temp_dec"] is not None:
return self.data["temp_dec"] / 10.0
else:
return None

@property
def led(self) -> bool:
Expand All @@ -54,6 +56,8 @@ def led(self) -> bool:
def led_brightness(self) -> LedBrightness:
if self.data["led_b"] is not None:
return LedBrightness(self.data["led_b"])
else:
return None

@property
def buzzer(self) -> bool:
Expand Down

0 comments on commit ca10a8b

Please sign in to comment.