80e9e9bfda49f28d254e004e4e80af396b9752dd,homeassistant/components/light/tradfri.py,Tradfri,__init__,#Tradfri#Any#,40
Before Change
self._name = light.name
self._rgb_color = None
self._features = ALLOWED_FEATURES.get(
slugify(self._light.device_info.manufacturer), SUPPORTED_FEATURES)
self._ok_temps = ALLOWED_TEMPERATURES.get(
slugify(self._light.device_info.manufacturer))
After Change
self._rgb_color = None
self._features = SUPPORT_BRIGHTNESS
if self._light_data.hex_color is not None:
if self._light.device_info.manufacturer == IKEA:
self._features &= SUPPORT_COLOR_TEMP
else:
self._features &= SUPPORT_RGB_COLOR
self._ok_temps = ALLOWED_TEMPERATURES.get(
slugify(self._light.device_info.manufacturer))
@property
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: home-assistant/home-assistant
Commit Name: 80e9e9bfda49f28d254e004e4e80af396b9752dd
Time: 2017-04-21
Author: paulus@paulusschoutsen.nl
File Name: homeassistant/components/light/tradfri.py
Class Name: Tradfri
Method Name: __init__
Project Name: home-assistant/home-assistant
Commit Name: 2ca1f7542f4a77f883bb2afc87e977a66cdc35c4
Time: 2016-04-24
Author: Daniel.H.Iversen@ntnu.no
File Name: homeassistant/components/sensor/rfxtrx.py
Class Name:
Method Name: setup_platform
Project Name: home-assistant/home-assistant
Commit Name: 40f480c24ef7ecc0352c457383e577d31885aac0
Time: 2017-04-21
Author: paulus@paulusschoutsen.nl
File Name: homeassistant/components/light/tradfri.py
Class Name: Tradfri
Method Name: __init__