core/homeassistant/components/light
Anders Melchiorsen d4b05a6a85 Fix LIFX lights with disappearing names (#7119)
* Cache the name of LIFX lights

After #7031 the LIFX device will change during an unregister/register
transition. This has the user-visible effect of the new device missing
a friendly name until the next poll.

We now cache the name internally and it will then transfer to the new
device when it registers.

* Allow LIFX logging even without an available device

This will allow us to set the device to None when it unregisters.

* Calculate LIFX availability from the existence of a device

This has become possible because the device is no longer needed
to provide the name of the light when it is unavailable.

We just have to forget the device when it unregisters.
2017-04-16 17:40:22 -07:00
..
__init__.py self.loop.create_task -> self.add_job (#6632) 2017-03-16 06:58:54 +01:00
avion.py Update docstring (quotes, links, content) (#5602) 2017-01-28 16:02:19 +01:00
blinksticklight.py Update ordering, constants, and callback name (light.*) (#3339) 2016-09-12 15:52:22 +02:00
decora.py Add support for Leviton Decora Bluetooth dimmer switches (#5434) 2017-01-21 14:14:08 -08:00
demo.py Restore_state helper to restore entity states from the DB on startup (#4614) 2017-02-20 23:40:27 -08:00
enocean.py Cleanup async handling (#6388) 2017-03-04 15:10:36 -08:00
flux_led.py Upgrade netdisco to 1.0.0rc2 (#7008) 2017-04-11 20:10:02 -07:00
homematic.py Homematic cleanup & hass best praxis (#6121) 2017-02-20 17:07:33 +01:00
hue.py Upgrade netdisco to 1.0.0rc2 (#7008) 2017-04-11 20:10:02 -07:00
hyperion.py Change CONF_DEFAULT_COLOR CV type (#5700) 2017-02-03 23:36:25 -08:00
insteon_hub.py Disable insteon hub (#4221) 2016-11-04 23:38:27 -07:00
insteon_local.py use change light level to avoid variable ramp speeds (#6860) 2017-03-30 23:53:10 -07:00
insteon_plm.py Eliminate needless async_add_job invocation of async_add_devices (#6864) 2017-04-03 00:01:53 -07:00
isy994.py Updated ISY component to not overwrite state_attributes. (#5433) 2017-01-19 22:22:33 -08:00
lifx.py Fix LIFX lights with disappearing names (#7119) 2017-04-16 17:40:22 -07:00
lifx_legacy.py Lifx legacy (#6847) 2017-03-29 23:00:22 -07:00
light_profiles.csv Lights now support profiles 2014-03-26 00:20:02 -07:00
limitlessled.py Fix bridge-led support in limitlessled.py (#6776) 2017-03-25 15:32:57 +01:00
litejet.py Fix automations listening to HOMEASSISTANT_START (#6936) 2017-04-05 23:23:02 -07:00
lutron.py Lutron. Bugfix callback registration. (#7042) 2017-04-12 09:52:01 +02:00
lutron_caseta.py Adds support for the PlugInDimmer hardware (#6915) 2017-04-03 08:52:02 -07:00
mqtt.py Add required changes to support MQTT discovery that I previously missed. See #6481. 2017-03-08 23:57:54 -08:00
mqtt_json.py Report proper features in mqtt_json light (#6941) 2017-04-05 14:39:19 +02:00
mqtt_template.py Add required changes to support MQTT discovery that I previously missed. See #6481. 2017-03-08 23:57:54 -08:00
mysensors.py Fix mysensors RGB and W light turn on (#5608) 2017-01-29 12:59:13 +01:00
osramlightify.py Fix #6534 (#6598) 2017-03-15 22:58:06 -07:00
piglow.py Update docstrings (#6795) 2017-03-26 15:50:40 +02:00
qwikswitch.py Style updates (#5878) 2017-02-11 11:29:37 -08:00
rflink.py Add option to disable automatic add for lights and sensors. (#6852) 2017-03-30 08:02:03 -07:00
rfxtrx.py Update ordering, constants, and callback name (light.*) (#3339) 2016-09-12 15:52:22 +02:00
scsgate.py Cleanup async handling (#6388) 2017-03-04 15:10:36 -08:00
services.yaml create light.hue_activate_scene service (#4425) 2016-11-17 22:14:06 -08:00
tellduslive.py initialize self._last_brightness (#4917) 2016-12-15 22:35:53 -08:00
tellstick.py Tellstick light fix (#5482) 2017-01-21 12:24:48 -08:00
tikteck.py Add support for Tikteck Bluetooth bulbs (#4843) 2017-01-04 22:31:31 +01:00
tradfri.py Make Tradfri discoverable (#7128) 2017-04-16 14:37:39 -07:00
vera.py WIP - Fix bug in state handling in Vera Switch and Light (#6931) 2017-04-04 12:02:09 +02:00
wemo.py Update ordering, constants, and callback name (light.*) (#3339) 2016-09-12 15:52:22 +02:00
wink.py Wink scene(shortcut) support (#6147) 2017-03-11 10:18:29 -08:00
x10.py Improved x10 state monitoring (#5115) 2017-01-16 23:11:02 -08:00
yeelight.py light.yeelight: catch i/o related exceptions from the backend lib (#6952) 2017-04-06 22:41:47 -07:00
yeelightsunflower.py Update docstrings (#6795) 2017-03-26 15:50:40 +02:00
zengge.py Add support for Zengge Bluetooth bulbs (#5196) 2017-01-13 22:15:43 -08:00
zigbee.py 0.28 (#3288) 2016-09-10 18:22:58 -07:00
zwave.py Fix for zwave RGB setting (#7137) 2017-04-16 15:06:59 -07:00