6e8c79d5310396987cf39d65ea40279abb799754,homeassistant/components/light/mysensors.py,MySensorsLightRGB,update,#MySensorsLightRGB#,277

Before Change


        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


class 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()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 11

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: MySensorsLightRGB
Method Name: turn_on


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: turn_on