Add icon translations to Vizio (#112348)

This commit is contained in:
Joost Lekkerkerker 2024-03-05 17:30:26 +01:00 committed by GitHub
parent 38a6b45f60
commit b0011d903e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 5 additions and 6 deletions

View File

@ -49,10 +49,6 @@ DEFAULT_VOLUME_STEP = 1
DEVICE_ID = "pyvizio"
DOMAIN = "vizio"
ICON = {
MediaPlayerDeviceClass.TV: "mdi:television",
MediaPlayerDeviceClass.SPEAKER: "mdi:speaker",
}
COMMON_SUPPORTED_COMMANDS = (
MediaPlayerEntityFeature.SELECT_SOURCE

View File

@ -0,0 +1,5 @@
{
"services": {
"update_setting": "mdi:cog"
}
}

View File

@ -42,7 +42,6 @@ from .const import (
DEFAULT_VOLUME_STEP,
DEVICE_ID,
DOMAIN,
ICON,
SERVICE_UPDATE_SETTING,
SUPPORTED_COMMANDS,
UPDATE_SETTING_SCHEMA,
@ -166,7 +165,6 @@ class VizioDevice(MediaPlayerEntity):
self._attr_supported_features = SUPPORTED_COMMANDS[device_class]
# Entity class attributes that will not change
self._attr_icon = ICON[device_class]
unique_id = config_entry.unique_id
assert unique_id
self._attr_unique_id = unique_id