mirror of
https://github.com/home-assistant/core.git
synced 2025-07-28 15:47:12 +00:00
Set has_entity_name in ws66i (#94608)
This commit is contained in:
parent
a0c023d5cb
commit
3424e927cb
@ -44,6 +44,8 @@ async def async_setup_entry(
|
||||
class Ws66iZone(CoordinatorEntity[Ws66iDataUpdateCoordinator], MediaPlayerEntity):
|
||||
"""Representation of a WS66i amplifier zone."""
|
||||
|
||||
_attr_has_entity_name = True
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
device: WS66i,
|
||||
@ -62,7 +64,7 @@ class Ws66iZone(CoordinatorEntity[Ws66iDataUpdateCoordinator], MediaPlayerEntity
|
||||
self._status: ZoneStatus = coordinator.data[data_idx]
|
||||
self._attr_source_list = ws66i_data.sources.name_list
|
||||
self._attr_unique_id = f"{entry_id}_{self._zone_id}"
|
||||
self._attr_name = f"Zone {self._zone_id}"
|
||||
self._attr_name = None
|
||||
self._attr_supported_features = (
|
||||
MediaPlayerEntityFeature.VOLUME_MUTE
|
||||
| MediaPlayerEntityFeature.VOLUME_SET
|
||||
@ -73,7 +75,7 @@ class Ws66iZone(CoordinatorEntity[Ws66iDataUpdateCoordinator], MediaPlayerEntity
|
||||
)
|
||||
self._attr_device_info = DeviceInfo(
|
||||
identifiers={(DOMAIN, str(self.unique_id))},
|
||||
name=self.name,
|
||||
name=f"Zone {self._zone_id}",
|
||||
manufacturer="Soundavo",
|
||||
model="WS66i 6-Zone Amplifier",
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user