Move core Sonos functionality out of entities (#50277)
This commit is contained in:
parent
0fdc50408a
commit
d6a202bd74
9 changed files with 733 additions and 839 deletions
|
@ -12,7 +12,7 @@ from homeassistant.components.binary_sensor import (
|
|||
from homeassistant.helpers.dispatcher import async_dispatcher_connect
|
||||
|
||||
from .const import SONOS_CREATE_BATTERY
|
||||
from .entity import SonosSensorEntity
|
||||
from .entity import SonosEntity
|
||||
from .speaker import SonosSpeaker
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
@ -32,7 +32,7 @@ async def async_setup_entry(hass, config_entry, async_add_entities):
|
|||
)
|
||||
|
||||
|
||||
class SonosPowerEntity(SonosSensorEntity, BinarySensorEntity):
|
||||
class SonosPowerEntity(SonosEntity, BinarySensorEntity):
|
||||
"""Representation of a Sonos power entity."""
|
||||
|
||||
@property
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue