Move and rename hlk_sw16 base entity to separate module (#126096)
This commit is contained in:
parent
c8e2408f82
commit
c20d07c14a
3 changed files with 63 additions and 57 deletions
|
@ -7,8 +7,9 @@ from homeassistant.config_entries import ConfigEntry
|
|||
from homeassistant.core import HomeAssistant
|
||||
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
||||
|
||||
from . import DATA_DEVICE_REGISTER, SW16Device
|
||||
from . import DATA_DEVICE_REGISTER
|
||||
from .const import DOMAIN
|
||||
from .entity import SW16Entity
|
||||
|
||||
PARALLEL_UPDATES = 0
|
||||
|
||||
|
@ -31,7 +32,7 @@ async def async_setup_entry(
|
|||
async_add_entities(devices_from_entities(hass, entry))
|
||||
|
||||
|
||||
class SW16Switch(SW16Device, SwitchEntity):
|
||||
class SW16Switch(SW16Entity, SwitchEntity):
|
||||
"""Representation of a HLK-SW16 switch."""
|
||||
|
||||
@property
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue