Core: ISY994: Error doing job: Task exception was never retrieved

Created on 13 Mar 2018  路  38Comments  路  Source: home-assistant/core

Make sure you are running the latest version of Home Assistant before reporting an issue.

You should only file an issue if you found a bug. Feature and enhancement requests should go in the Feature Requests section of our community forum:

Home Assistant release (hass --version):
0.65.4

Python release (python3 --version):
Python 3.6.3

Component/platform:
https://home-assistant.io/components/isy994/

Description of problem:
Roughly every 10mins the logs fill with isy related errors (see below)
The component works fine otherwise.

Expected:
No errors in logs

Problem-relevant configuration.yaml entries and steps to reproduce:

isy994:
  host: ISY_ADDRESS
  username: ISY_USERNAME
  password: ISY_PASSWORD

Traceback (if applicable):

2018-03-12 18:23:01 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.pothos_temperature is taking over 10 seconds
2018-03-12 18:23:18 WARNING (MainThread) [homeassistant.components.sensor] Updating miflora sensor took longer than the scheduled update interval 0:00:30
2018-03-12 18:33:04 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/lib/python3.6/asyncio/tasks.py", line 180, in _step
    result = coro.send(None)
  File "/usr/local/lib/python3.6/dist-packages/homeassistant/helpers/entity.py", line 223, in async_update_ha_state
    device_attr = self.device_state_attributes
  File "/usr/local/lib/python3.6/dist-packages/homeassistant/components/isy994.py", line 484, in device_state_attributes
    for name, val in self._node.aux_properties.items():
AttributeError: 'list' object has no attribute 'items'

Additional info:
Issue has been happening since 0.61.0, and in every version since.

Related forum post: https://community.home-assistant.io/t/error-doing-job-task-exception-was-never-retrieved-was-version-0-61-and-isy994i/39501

in progress isy994 waiting-for-upstream

Most helpful comment

Yep, the issue will remain until PyISY accepts the change. Hopefully soon!

All 38 comments

CC @rmkraus (you probably know the most about this integration) aux_properties seems like it should always be a dict; however in parse_xml_properties you're returning a list and treating it like a list too:

https://github.com/automicus/PyISY/blob/b2519a846a848191c6b7ccb24e27e69fd835cfe1/PyISY/Nodes/node.py#L88-L93

I don't know what exact logic should be there instead. Maybe a dict update? I have no knowledge how this integration works and have none of those devices, still I hope this might help.

I am experiencing this issue as well. If you need any logs or configuration or something, please let me know.

My logs show:

Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/lib/python3.6/asyncio/tasks.py", line 180, in _step
    result = coro.send(None)
  File "/usr/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 223, in async_update_ha_state
    device_attr = self.device_state_attributes
  File "/usr/lib/python3.6/site-packages/homeassistant/components/isy994.py", line 484, in device_state_attributes
    for name, val in self._node.aux_properties.items():
AttributeError: 'list' object has no attribute 'items'

Thanks!

Is there any movement on this? How do bugs get prioritized?

Thanks!

@OverloadUT have you seen this error before?

I've seen the message before; it's on my list to investigate

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.

Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment :+1:

This issue is still unresolved and I'm always on the latest version of the software. Please leave issue opened.

Latest message this morning:

Log Details (ERROR)
Thu Jul 26 2018 08:09:48 GMT-0400 (Eastern Daylight Time)

Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 215, in async_update_ha_state
    device_attr = self.device_state_attributes
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/isy994.py", line 482, in device_state_attributes
    for name, val in self._node.aux_properties.items():
AttributeError: 'list' object has no attribute 'items'

Confirming that this is still on my list to investigate and fix

Issue is still outstanding, months later.

AttributeError: 'list' object has no attribute 'items',
    await entity.async_update_ha_state(),
    for name, val in self._node.aux_properties.items():,
  File "/usr/src/app/homeassistant/components/isy994.py", line 482, in device_state_attributes,
    device_attr = self.device_state_attributes,
  File "/usr/src/app/homeassistant/helpers/entity.py", line 243, in async_update_ha_state,
  File "/usr/src/app/homeassistant/helpers/entity_platform.py", line 344, in _async_add_entity,
Traceback (most recent call last):,
2018-09-07 12:49:39 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved

i got the same error still

I have identified the issue and submitted a fix. It's in the upstream PyISY library: https://github.com/automicus/PyISY/pull/43

Note that the issue is still present in current release 0.80.0.

Yep, the issue will remain until PyISY accepts the change. Hopefully soon!

Just wanted to chime in and say I am waiting for this one too.
Anything we can do to help move it along?

Have this in the current version, updated today

Great. So the intent is to have this included in version 0.86 ?

@TrueOsiris - Is this bug fixed in the latest PyISY release?

Doesnt look like the PR was merged yet...

Version 0.87.1 and the problem still not solved. My problem is with custom climate component.
It work sometimes but show this error very often.

@TrueOsiris , what is the status of this?

Over one year later, still not fixed? Does anyone have an idea on how to fix this? I get the error about 200 times per day.

Thanks!

Any updates? I'm still getting this error...

File "/usr/local/lib/python3.7/site-packages/homeassistant/components/isy994/__init__.py", line 472, in device_state_attributes
    for name, val in self._node.aux_properties.items():
AttributeError: 'list' object has no attribute 'items'

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 馃憤
This issue now has been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

The issue has NOT been addressed or resolved. I am ALWAYS running the latest production version of HA (now on 96.4) and I always read the Release notes looking to see if this issue was addressed. I have never seen anything since version 6x.x. The error message still shows up in my logs, hundreds of times daily.

It is not because new bugs or issues get added that the old ones auto-magically get resolved. Please keep this issue open until resolution.

Thanks!

As mentioned.
Issue is not resolved. Last we heard it was an upstream issue.
This has been going on for over a year. Could it be checked if the upstream issue has actually been fixed

May help if you keep pinging the upstream for a resolution. it is not going to be magically fixed in HA if the problem is in the upstream lib.

@Adminiuga
Okay, so it's still not fixed upstream.
Either way, this issue does need to remain open as it is still present.
I'll ping the upstream issue also

Over on the PyISY side, we're working on reviewing and testing a very sizable refactoring (https://github.com/automicus/PyISY/pull/44) and improvement of the library, which will make its way in to Hass after it's all done upstream. This fix will be a part of it I expect but I'll double check.

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 馃憤
This issue now has been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

Issue still not fixed. Please keep this open and kill that annoying bot.

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 馃憤
This issue now has been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

Issue still not fixed. Please keep this open and kill that annoying bot.
I still get, almost 500 times in 3 days:
"Error doing job: Task exception was never retrieved
11:12 AM components/isy994/__init__.py (ERROR) - message first occurred at January 21, 2020, 12:13 PM and shows up 480 times"

Running Home Assistant 0.104.3 (latest version)

This is likely solved in https://github.com/shbatm/hacs-isy994 which will hopefully make it back into core once all the PyISY changes are completed.

cc @shbatm

Confirmed fixed in HACS version. Fix will be sent to Core once PyISY v2 is finalized.

Fixed in 0.110

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kirichkov picture kirichkov  路  3Comments

YellowMonster76 picture YellowMonster76  路  3Comments

arangates picture arangates  路  3Comments

moskovskiy82 picture moskovskiy82  路  3Comments

neonandu picture neonandu  路  3Comments