You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if smart-scenestart_timekind is sunset aiohue give a error.
if i change line 61 of aiohue/v2/models/smart_scene.py to time: TimeslotStartTimeTime | None = None the error is gone.
2024-09-12 11:31:56.356 ERROR (MainThread) [aiohue.v2[192.168.1.25].smart_scene] Unable to parse resource, please report this to the authors of aiohue.
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/aiohue/v2/controllers/base.py", line 200, in _handle_event
cur_item = self._items[item_id] = dataclass_from_dict(
^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aiohue/util.py", line 244, in dataclass_from_dict
field.name: _parse_value(
^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aiohue/util.py", line 153, in _parse_value
return origin(
^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aiohue/util.py", line 154, in <genexpr>
_parse_value(name, subvalue, get_args(value_type)[0])
File "/usr/local/lib/python3.12/site-packages/aiohue/util.py", line 149, in _parse_value
return dataclass_from_dict(value_type, value)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aiohue/util.py", line 244, in dataclass_from_dict
field.name: _parse_value(
^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aiohue/util.py", line 153, in _parse_value
return origin(
^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aiohue/util.py", line 154, in <genexpr>
_parse_value(name, subvalue, get_args(value_type)[0])
File "/usr/local/lib/python3.12/site-packages/aiohue/util.py", line 149, in _parse_value
return dataclass_from_dict(value_type, value)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aiohue/util.py", line 244, in dataclass_from_dict
field.name: _parse_value(
^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aiohue/util.py", line 149, in _parse_value
return dataclass_from_dict(value_type, value)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aiohue/util.py", line 244, in dataclass_from_dict
field.name: _parse_value(
^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aiohue/util.py", line 202, in _parse_value
raise KeyError(f"`{name}` of type `{value_type}` is required.")
KeyError: "`TimeslotStartTime.time` of type `<class 'aiohue.v2.models.smart_scene.TimeslotStartTimeTime'>` is required."
The text was updated successfully, but these errors were encountered:
if
smart-scene
start_time
kind
issunset
aiohue give a error.if i change line 61 of
aiohue/v2/models/smart_scene.py
totime: TimeslotStartTimeTime | None = None
the error is gone.The text was updated successfully, but these errors were encountered: