6e8c79d5310396987cf39d65ea40279abb799754,homeassistant/components/light/mysensors.py,MySensorsLightRGBW,update,#MySensorsLightRGBW#,344
Before Change
def update(self):
Update the controller with the latest value from a sensor.
super().update()
set_req = self.gateway.const.SetReq
if float(self.gateway.version) >= 1.5 and \
set_req.V_RGBW in self._values:
value = self._values[set_req.V_RGBW]
color_list = rgb_hex_to_list(value)
if set_req.V_LIGHT not in self._values and \
set_req.V_DIMMER not in self._values:
self._state = max(color_list) > 0
if len(color_list) > 3:
self._white = color_list.pop()
self._rgb = color_list
After Change
Update the controller with the latest value from a sensor.
super()._update()
super()._update_light()
super()._update_dimmer()
super()._update_rgb_or_w()
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 21
Instances Project Name: home-assistant/home-assistant
Commit Name: 6e8c79d5310396987cf39d65ea40279abb799754
Time: 2016-02-17
Author: marhje52@kth.se
File Name: homeassistant/components/light/mysensors.py
Class Name: MySensorsLightRGBW
Method Name: update
Project Name: home-assistant/home-assistant
Commit Name: 6e8c79d5310396987cf39d65ea40279abb799754
Time: 2016-02-17
Author: marhje52@kth.se
File Name: homeassistant/components/light/mysensors.py
Class Name: MySensorsLightRGBW
Method Name: update
Project Name: home-assistant/home-assistant
Commit Name: 6e8c79d5310396987cf39d65ea40279abb799754
Time: 2016-02-17
Author: marhje52@kth.se
File Name: homeassistant/components/light/mysensors.py
Class Name: MySensorsLightDimmer
Method Name: update
Project Name: home-assistant/home-assistant
Commit Name: 6e8c79d5310396987cf39d65ea40279abb799754
Time: 2016-02-17
Author: marhje52@kth.se
File Name: homeassistant/components/light/mysensors.py
Class Name: MySensorsLightRGB
Method Name: update