2022-03-06 23:41:13 DEBUG (MainThread) [custom_components.jcihitachi_tw] Unexpected error fetching jcihitachi_tw data: 'JciHitachiDH' object has no attribute 'legacy_status'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 187, in _async_refresh
self.data = await self._async_update_data()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 147, in _async_update_data
return await self.update_method()
File "/config/custom_components/jcihitachi_tw/__init__.py", line 100, in async_update_data
f"Latest data: {[(name, value.legacy_status) for name, value in hass.data[UPDATED_DATA].items()]}")
File "/config/custom_components/jcihitachi_tw/__init__.py", line 100, in <listcomp>
f"Latest data: {[(name, value.legacy_status) for name, value in hass.data[UPDATED_DATA].items()]}")
AttributeError: 'JciHitachiDH' object has no attribute 'legacy_status'
Problems
the class
JciHitachiDH
doesn't have the attributelegacy_status
Expected log:
Actual log: