-
-
Notifications
You must be signed in to change notification settings - Fork 36.3k
Closed
Labels
Description
The problem
When a device added from the Vizio integration goes to update its device information it is attempting to access a dictionary key that doesn't exist.
Environment
- Home Assistant Core release with the issue: 0.108.9
- Last working Home Assistant Core release (if known):
- Operating environment (Home Assistant/Supervised/Docker/venv): Docker
- Integration causing this issue: Vizio
- Link to integration documentation on our website:
Problem-relevant configuration.yaml
Traceback/Error logs
2020-04-25 17:30:35 ERROR (MainThread) [homeassistant.helpers.entity] Update for media_player.vizio_tv fails
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 279, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 474, in async_device_update
await self.async_update()
File "/usr/src/homeassistant/homeassistant/components/vizio/media_player.py", line 203, in async_update
self._is_muted = audio_settings["mute"].lower() == "on"
KeyError: 'mute'Additional information
Here's is the audio_settings dictionary output for my TV. Even when the tv is muted there still is no mute key.
{'tv_speakers': 'Auto', 'volume_control_display': 'Off', 'surround_sound': 'Off', 'volume_leveling': 'On', 'balance': 0, 'lip_sync': 1, 'digital_audio_out': 'Auto', 'analog_audio_out': 'Fixed', 'volume': 63}