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

@ -9,7 +9,7 @@ from homeassistant.const import DEVICE_CLASS_BATTERY, PERCENTAGE
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__)
@ -27,7 +27,7 @@ async def async_setup_entry(hass, config_entry, async_add_entities):
)
class SonosBatteryEntity(SonosSensorEntity, SensorEntity):
class SonosBatteryEntity(SonosEntity, SensorEntity):
"""Representation of a Sonos Battery entity."""
@property