mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 21:57:51 +00:00
parent
e9f9c7799a
commit
726b0c5179
@ -42,7 +42,7 @@ async def async_setup_entry(
|
|||||||
async_add_entities(
|
async_add_entities(
|
||||||
[
|
[
|
||||||
AFSAPIDevice(
|
AFSAPIDevice(
|
||||||
config_entry.unique_id or config_entry.entry_id,
|
config_entry.entry_id,
|
||||||
config_entry.title,
|
config_entry.title,
|
||||||
afsapi,
|
afsapi,
|
||||||
)
|
)
|
||||||
@ -84,7 +84,7 @@ class AFSAPIDevice(MediaPlayerEntity):
|
|||||||
identifiers={(DOMAIN, unique_id)},
|
identifiers={(DOMAIN, unique_id)},
|
||||||
name=name,
|
name=name,
|
||||||
)
|
)
|
||||||
self._attr_unique_id = f"{unique_id}_media_player"
|
self._attr_unique_id = unique_id
|
||||||
self._max_volume: int | None = None
|
self._max_volume: int | None = None
|
||||||
|
|
||||||
self.__modes_by_label: dict[str, str] | None = None
|
self.__modes_by_label: dict[str, str] | None = None
|
||||||
|
Loading…
x
Reference in New Issue
Block a user