Change devolo HomeControl SwitchDevice to SwitchEntity (#36248)
parent
6f9770c067
commit
08f2714e57
|
@ -1,7 +1,7 @@
|
||||||
"""Platform for light integration."""
|
"""Platform for switch integration."""
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from homeassistant.components.switch import SwitchDevice
|
from homeassistant.components.switch import SwitchEntity
|
||||||
from homeassistant.config_entries import ConfigEntry
|
from homeassistant.config_entries import ConfigEntry
|
||||||
from homeassistant.helpers.typing import HomeAssistantType
|
from homeassistant.helpers.typing import HomeAssistantType
|
||||||
|
|
||||||
|
@ -29,8 +29,8 @@ async def async_setup_entry(
|
||||||
async_add_entities(entities)
|
async_add_entities(entities)
|
||||||
|
|
||||||
|
|
||||||
class DevoloSwitch(SwitchDevice):
|
class DevoloSwitch(SwitchEntity):
|
||||||
"""Representation of an Awesome Light."""
|
"""Representation of a switch."""
|
||||||
|
|
||||||
def __init__(self, homecontrol, device_instance, element_uid):
|
def __init__(self, homecontrol, device_instance, element_uid):
|
||||||
"""Initialize an devolo Switch."""
|
"""Initialize an devolo Switch."""
|
||||||
|
|
Loading…
Reference in New Issue