Move core Sonos functionality out of entities (#50277)

This commit is contained in:
jjlawren 2021-05-11 12:36:40 -05:00 committed by GitHub
parent 0fdc50408a
commit d6a202bd74
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 733 additions and 839 deletions

View file

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