Move and rename hlk_sw16 base entity to separate module (#126096)

This commit is contained in:
epenet 2024-09-17 15:44:11 +02:00 committed by GitHub
parent c8e2408f82
commit c20d07c14a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 63 additions and 57 deletions

View file

@ -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