Rename SwitchDevice to SwitchEntity (#34673)
This commit is contained in:
1 parent
e4333a7a44
commit
066e921a8b
121 files changed
+273
-251
No files matched your search
@@ -1,5 +1,5 @@
|
||||
"""Support for LightwaveRF switches."""
|
||||
from homeassistant.components.switch import SwitchDevice
|
||||
from homeassistant.components.switch import SwitchEntity
|
||||
from homeassistant.const import CONF_NAME
|
||||
|
||||
from . import LIGHTWAVE_LINK
|
||||
@@ -20,7 +20,7 @@ async def async_setup_platform(hass, config, async_add_entities, discovery_info=
|
||||
async_add_entities(switches)
|
||||
|
||||
|
||||
class LWRFSwitch(SwitchDevice):
|
||||
class LWRFSwitch(SwitchEntity):
|
||||
"""Representation of a LightWaveRF switch."""
|
||||
|
||||
def __init__(self, name, device_id, lwlink):
|
||||
|
||||
Reference in new issue
Block a user