home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.71k stars 30.83k forks source link

Zestimate Sensor Now showing "Error on Device Update" #57219

Closed heytcass closed 3 years ago

heytcass commented 3 years ago

The problem

Since updating to 2021.10.0 my Zesitmate sensor stopped working. I have not changed any of the configuration within my YAML file, simply ran an update on Home Assistant. No breaking changes for Zestimate were listed in the 2021.10.0 release notes. Log output is found in the Details section of this bug.

What is version of Home Assistant Core has the issue?

core-2021.10.0

What was the last working version of Home Assistant Core?

core-2021.9.7

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Zestimate

Link to integration documentation on our website

https://www.home-assistant.io/integrations/zestimate/

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Logger: homeassistant.components.sensor
Source: components/zestimate/sensor.py:108
Integration: Sensor (documentation, issues)
First occurred: 9:44:41 PM (1 occurrences)
Last logged: 9:44:41 PM

zestimate: Error on device update!
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 431, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 618, in async_device_update
    await task
  File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/components/zestimate/sensor.py", line 108, in update
    data_dict = xmltodict.parse(data).get(ZESTIMATE)
  File "/usr/local/lib/python3.9/site-packages/xmltodict.py", line 327, in parse
    parser.Parse(xml_input, True)
xml.parsers.expat.ExpatError: not well-formed (invalid token): line 32, column 38

Additional information

No response

probot-home-assistant[bot] commented 3 years ago

zestimate documentation zestimate source (message by IssueLinks)

dshokouhi commented 3 years ago

This might be a zillow error as I am getting the error on 2021.9.x

meichthys commented 3 years ago

I'm also getting this on the latest version. It seems to be a change in the Zillow API. Unfortunately I don't think any updates to this integration will be approved since it does not support a config flow and also uses requests to fetch and then parse the zillow website directly. I believe any changes to this will need to use a third party package that does the parsing for us.