Rename Light to LightEntity (#34593)

This commit is contained in:
Erik Montnemery authored and GitHub committed 2020-04-26 18:49:41 +02:00
1 parent 8402363568
commit e4333a7a44
93 files changed
+248 -191

No files matched your search

+6 -2
View File
@@ -1,5 +1,9 @@
"""Support for LightwaveRF lights."""
from homeassistant.components.light import ATTR_BRIGHTNESS, SUPPORT_BRIGHTNESS, Light
from homeassistant.components.light import (
ATTR_BRIGHTNESS,
SUPPORT_BRIGHTNESS,
LightEntity,
)
from homeassistant.const import CONF_NAME
from . import LIGHTWAVE_LINK
@@ -22,7 +26,7 @@ async def async_setup_platform(hass, config, async_add_entities, discovery_info=
async_add_entities(lights)
class LWRFLight(Light):
class LWRFLight(LightEntity):
"""Representation of a LightWaveRF light."""
def __init__(self, name, device_id, lwlink):