bulb: add the temperature range to state_information, inform the user if the info is missing when calling temperature (#163)

This commit is contained in:
Teemu R
2019-03-16 21:32:25 +01:00
committed by GitHub
parent 07b4eda7ae
commit 8046c96b54
2 changed files with 4 additions and 0 deletions

View File

@@ -285,6 +285,7 @@ class SmartBulb(SmartDevice):
} # type: Dict[str, Any]
if self.is_variable_color_temp:
info["Color temperature"] = self.color_temp
info["Valid temperature range"] = self.valid_temperature_range
if self.is_color:
info["HSV"] = self.hsv