6e8c79d5310396987cf39d65ea40279abb799754,homeassistant/components/light/mysensors.py,MySensorsLightRGB,update,#MySensorsLightRGB#,277
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_RGB in self._values:
value = self._values[set_req.V_RGB]
self._rgb = 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(self._rgb) > 0
cla ss MySensorsLightRGBW(MySensorsLightDimmer):
RGBW child class to MySensorsLight.
def __init__(self, *args):
After Change
def update(self):
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: MySensorsLightRGB
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: 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: MySensorsLightRGB
Method Name: update