mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Migrate frontier silicon to has entity name (#96571)
This commit is contained in:
parent
2bbce7ad22
commit
69bcba7ef5
@ -46,6 +46,8 @@ class AFSAPIDevice(MediaPlayerEntity):
|
|||||||
"""Representation of a Frontier Silicon device on the network."""
|
"""Representation of a Frontier Silicon device on the network."""
|
||||||
|
|
||||||
_attr_media_content_type: str = MediaType.CHANNEL
|
_attr_media_content_type: str = MediaType.CHANNEL
|
||||||
|
_attr_has_entity_name = True
|
||||||
|
_attr_name = None
|
||||||
|
|
||||||
_attr_supported_features = (
|
_attr_supported_features = (
|
||||||
MediaPlayerEntityFeature.PAUSE
|
MediaPlayerEntityFeature.PAUSE
|
||||||
@ -73,7 +75,6 @@ class AFSAPIDevice(MediaPlayerEntity):
|
|||||||
identifiers={(DOMAIN, afsapi.webfsapi_endpoint)},
|
identifiers={(DOMAIN, afsapi.webfsapi_endpoint)},
|
||||||
name=name,
|
name=name,
|
||||||
)
|
)
|
||||||
self._attr_name = name
|
|
||||||
|
|
||||||
self._max_volume: int | None = None
|
self._max_volume: int | None = None
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user