Black
This commit is contained in:
1 parent
da05dfe708
commit
4de97abc3a
2676 files changed
+163166
-140084
No files matched your search
@@ -1,6 +1,5 @@
|
||||
"""Support for LightwaveRF lights."""
|
||||
from homeassistant.components.light import (
|
||||
ATTR_BRIGHTNESS, SUPPORT_BRIGHTNESS, Light)
|
||||
from homeassistant.components.light import ATTR_BRIGHTNESS, SUPPORT_BRIGHTNESS, Light
|
||||
from homeassistant.const import CONF_NAME
|
||||
|
||||
from . import LIGHTWAVE_LINK
|
||||
@@ -8,8 +7,7 @@ from . import LIGHTWAVE_LINK
|
||||
MAX_BRIGHTNESS = 255
|
||||
|
||||
|
||||
async def async_setup_platform(
|
||||
hass, config, async_add_entities, discovery_info=None):
|
||||
async def async_setup_platform(hass, config, async_add_entities, discovery_info=None):
|
||||
"""Find and return LightWave lights."""
|
||||
if not discovery_info:
|
||||
return
|
||||
@@ -69,7 +67,8 @@ class LWRFLight(Light):
|
||||
|
||||
if self._brightness != MAX_BRIGHTNESS:
|
||||
self._lwlink.turn_on_with_brightness(
|
||||
self._device_id, self._name, self._brightness)
|
||||
self._device_id, self._name, self._brightness
|
||||
)
|
||||
else:
|
||||
self._lwlink.turn_on_light(self._device_id, self._name)
|
||||
|
||||
|
||||
Reference in new issue
Block a user