0589379de5462567ba3f8b7edd31d22a5f08f41b,homeassistant/components/homekit/type_lights.py,Light,set_color,#Light#,119

Before Change


            _LOGGER.debug("%s: Set hs_color to %s", self.entity_id, color)
            self._flag.update({
                CHAR_HUE: False, CHAR_SATURATION: False, RGB_COLOR: True})
            self.hass.components.light.turn_on(
                self.entity_id, hs_color=color)

    def update_state(self, new_state):
        Update light after state change.
        // Handle State

After Change


            _LOGGER.debug("%s: Set hs_color to %s", self.entity_id, color)
            self._flag.update({
                CHAR_HUE: False, CHAR_SATURATION: False, RGB_COLOR: True})
            params = {ATTR_ENTITY_ID: self.entity_id, ATTR_HS_COLOR: color}
            self.hass.services.call(DOMAIN, SERVICE_TURN_ON, params)

    def update_state(self, new_state):
        Update light after state change.
        // Handle State
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 11

Instances


Project Name: home-assistant/home-assistant
Commit Name: 0589379de5462567ba3f8b7edd31d22a5f08f41b
Time: 2018-05-20
Author: 30130371+cdce8p@users.noreply.github.com
File Name: homeassistant/components/homekit/type_lights.py
Class Name: Light
Method Name: set_color


Project Name: home-assistant/home-assistant
Commit Name: 2f8865d6cb64b252254874589a722cb886c405b8
Time: 2018-05-21
Author: 30130371+cdce8p@users.noreply.github.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: 0589379de5462567ba3f8b7edd31d22a5f08f41b
Time: 2018-05-20
Author: 30130371+cdce8p@users.noreply.github.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: 2f8865d6cb64b252254874589a722cb886c405b8
Time: 2018-05-21
Author: 30130371+cdce8p@users.noreply.github.com
File Name: homeassistant/components/homekit/type_lights.py
Class Name: Light
Method Name: set_color