Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueError: 'on_off_color' is not a valid Signal #204

Closed
mjburton opened this issue May 16, 2023 · 0 comments · Fixed by #219
Closed

ValueError: 'on_off_color' is not a valid Signal #204

mjburton opened this issue May 16, 2023 · 0 comments · Fixed by #219

Comments

@mjburton
Copy link

mjburton commented May 16, 2023

I've had an issue with HASS freezing up on a number of integrations for an hour at a time, three times a day at the same times each day. The only log entry between the times relates to the hue integration:

2023-05-16 06:31:09.235 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
ValueError: 'on_off_color' is not a valid Signal

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/aiohue/v2/init.py", line 241, in _handle_connect_event
await self.fetch_full_state()
File "/usr/local/lib/python3.10/site-packages/aiohue/v2/init.py", line 246, in fetch_full_state
await asyncio.gather(
File "/usr/local/lib/python3.10/site-packages/aiohue/v2/controllers/base.py", line 77, in initialize
await self.__handle_reconnect(initial_data)
File "/usr/local/lib/python3.10/site-packages/aiohue/v2/controllers/base.py", line 279, in __handle_reconnect
await self._handle_event(
File "/usr/local/lib/python3.10/site-packages/aiohue/v2/controllers/base.py", line 227, in _handle_event
updated_keys = update_dataclass(cur_item, evt_data)
File "/usr/local/lib/python3.10/site-packages/aiohue/util.py", line 96, in update_dataclass
for subkey in update_dataclass(cur_val, new_val):
File "/usr/local/lib/python3.10/site-packages/aiohue/util.py", line 100, in update_dataclass
new_val = _parse_value(f.name, new_val, f.type, cur_val)
File "/usr/local/lib/python3.10/site-packages/aiohue/util.py", line 147, in _parse_value
return [
File "/usr/local/lib/python3.10/site-packages/aiohue/util.py", line 148, in
_parse_value(name, subval, get_args(value_type)[0])
File "/usr/local/lib/python3.10/site-packages/aiohue/util.py", line 183, in _parse_value
return value_type(value)
File "/usr/local/lib/python3.10/enum.py", line 385, in call
return cls.new(cls, value)
File "/usr/local/lib/python3.10/enum.py", line 718, in new
raise exc
TypeError: error in Signal.missing: returned <AlertEffectType.UNKNOWN: 'unknown'> instead of None or a valid member

Home Assistant 2023.5.2
Frontend 20230503.3 - latest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant