core: Vizio TV won't integrate with Hass.io
The problem
I have had my Vizio TV configured and working well for over a year, and just recently I think it was after I updated to 0.106. I realized that the vizio media player entity was missing. I am not sure when exactly but it was about the time that there was a change in the config.yaml where you use the vizio component instead of the media_player.
Environment
- Home Assistant release with the issue: 0.107.7
- Last working Home Assistant release (if known): 0.105
- Operating environment (Hass.io/Docker/Windows/etc.): Hass.io/imac
- Integration causing this issue: Vizio SmartCast
- Link to integration documentation on our website: https://www.home-assistant.io/integrations/vizio/
Problem-relevant configuration.yaml
vizio:
- host: !secret tv_address
access_token: !secret tv_token
secrets.yaml
tv_address: 192.168.x.xxx:7345
tv_token: "Z8qxn6o5de"
Traceback/Error logs
2020-03-29 02:21:56 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 109, in async_init
result = await self._async_handle_step(flow, flow.init_step, data)
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 172, in _async_handle_step
result: Dict = await getattr(flow, method)(user_input)
File "/usr/src/homeassistant/homeassistant/components/vizio/config_flow.py", line 302, in async_step_zeroconf
if _host_is_same(entry.data[CONF_HOST], discovery_info[CONF_HOST]):
KeyError: 'host'
Additional information
I have noticed that Google Cast was still configured so I deleted it and commented out the vizio section in my config, restart and then uncomment and restart again but only the Google Cast came up for configuration.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 51 (30 by maintainers)
Ah it looks like when you ignore a setup it creates a different key. I will talk to the core team about the best way to address this and push a fix
Thanks very much for the advice. I will backup, and give editing .storage vizio entries a try, and get back to you.
Hi @raman325 - my apologies for commenting on a closed case. I am doing so since the error message I am getting is identical to the error in the OP. However, I am NOT trying to set up a Vizio integration, although I do have a Vizio SmartCast TV on the network. This error is apparently coming from the zeroconf discovery process and finding a glitch in Vizio config_flow.py. All I am hoping you can tell me is if this is a known issue in the Vizio code that will be fixed and/or what I can do to eliminate it. This first started in 107.x I believe, and is still present in 108.3. Let me know if I need to open a new case. Thanks.