6e8c79d5310396987cf39d65ea40279abb799754,homeassistant/components/light/mysensors.py,MySensorsLightRGBW,turn_off,#MySensorsLightRGBW#,335
Before Change
def turn_off(self, **kwargs):
Turn the device off.
value_type = None
value = None
if float(self.gateway.version) >= 1.5:
value_type = self.gateway.const.SetReq.V_RGBW
value = "00000000"
super().turn_off(value_type=value_type, value=value)
def update(self):
Update the controller with the latest value from a sensor.
super().update()
After Change
def turn_off(self, **kwargs):
Turn the device off.
ret = super()._turn_off_rgb_or_w()
ret = super()._turn_off_dimmer(
value_type=ret[ATTR_VALUE_TYPE], value=ret[ATTR_VALUE])
ret = super()._turn_off_light(
value_type=ret[ATTR_VALUE_TYPE], value=ret[ATTR_VALUE])
super()._turn_off(
value_type=ret[ATTR_VALUE_TYPE], value=ret[ATTR_VALUE])
def update(self):
Update the controller with the latest value from a sensor.
super()._update()
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 19
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: turn_off
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: turn_off
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_off
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_off