Address late comments in #97955 (#98165)

This commit is contained in:
Thijs W 2023-08-10 13:58:48 +02:00 committed by GitHub
parent e9f9c7799a
commit 726b0c5179
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -42,7 +42,7 @@ async def async_setup_entry(
async_add_entities(
[
AFSAPIDevice(
config_entry.unique_id or config_entry.entry_id,
config_entry.entry_id,
config_entry.title,
afsapi,
)
@ -84,7 +84,7 @@ class AFSAPIDevice(MediaPlayerEntity):
identifiers={(DOMAIN, unique_id)},
name=name,
)
self._attr_unique_id = f"{unique_id}_media_player"
self._attr_unique_id = unique_id
self._max_volume: int | None = None
self.__modes_by_label: dict[str, str] | None = None