From e1deb4a0833d53e16311bdbe3584ea3f06a7c8c8 Mon Sep 17 00:00:00 2001 From: LiShuzhen Date: Tue, 3 Jun 2025 17:04:47 +0800 Subject: [PATCH] fix: use media player default icon --- custom_components/xiaomi_home/media_player.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/custom_components/xiaomi_home/media_player.py b/custom_components/xiaomi_home/media_player.py index 0baead1..f863d92 100644 --- a/custom_components/xiaomi_home/media_player.py +++ b/custom_components/xiaomi_home/media_player.py @@ -451,7 +451,6 @@ class WifiSpeaker(FeatureVolumeSet, FeatureVolumeMute, FeaturePlay, """Initialize the device.""" super().__init__(miot_device=miot_device, entity_data=entity_data) - self._attr_icon = 'mdi:speaker-wireless' self._attr_device_class = MediaPlayerDeviceClass.SPEAKER self._attr_media_content_type = MediaType.MUSIC @@ -467,6 +466,5 @@ class Television(FeatureVolumeSet, FeatureVolumeMute, FeaturePlay, FeaturePause, """Initialize the device.""" super().__init__(miot_device=miot_device, entity_data=entity_data) - self._attr_icon = 'mdi:television' self._attr_device_class = MediaPlayerDeviceClass.TV self._attr_media_content_type = MediaType.VIDEO