fee87cd6ed859d0b4f2d44619a4c0a4c88ec80f3,homeassistant/components/homekit/type_lights.py,Light,set_brightness,#Light#Any#,89

Before Change


            self.set_state(0)  // Turn off light
            return
        params = {ATTR_ENTITY_ID: self.entity_id, ATTR_BRIGHTNESS_PCT: value}
        self.hass.services.call(DOMAIN, SERVICE_TURN_ON, params)

    def set_color_temperature(self, value):
        Set color temperature if call came from HomeKit.
        _LOGGER.debug("%s: Set color temp to %s", self.entity_id, value)

After Change


            self.set_state(0)  // Turn off light
            return
        params = {ATTR_ENTITY_ID: self.entity_id, ATTR_BRIGHTNESS_PCT: value}
        self.call_service(DOMAIN, SERVICE_TURN_ON, params,
                          "brightness at {}%".format(value))

    def set_color_temperature(self, value):
        Set color temperature if call came from HomeKit.
        _LOGGER.debug("%s: Set color temp to %s", self.entity_id, value)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: home-assistant/home-assistant
Commit Name: fee87cd6ed859d0b4f2d44619a4c0a4c88ec80f3
Time: 2018-10-16
Author: hendrix_erik@hotmail.com
File Name: homeassistant/components/homekit/type_lights.py
Class Name: Light
Method Name: set_brightness


Project Name: home-assistant/home-assistant
Commit Name: fee87cd6ed859d0b4f2d44619a4c0a4c88ec80f3
Time: 2018-10-16
Author: hendrix_erik@hotmail.com
File Name: homeassistant/components/homekit/type_lights.py
Class Name: Light
Method Name: set_color_temperature


Project Name: home-assistant/home-assistant
Commit Name: fee87cd6ed859d0b4f2d44619a4c0a4c88ec80f3
Time: 2018-10-16
Author: hendrix_erik@hotmail.com
File Name: homeassistant/components/homekit/type_lights.py
Class Name: Light
Method Name: set_color