Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

AsusData.CLIENTS is not serialiazble when trying to convert to JSON #436

Open
@jotzet79

Description

@jotzet79

Hello@Vaskivskyi,
I really like your library, as I want to do some automation with it (specifically switching back 5GHz Channels to DSF >100 if Radar-Detection swaps it with something like 36 / 40 and the like).

However I think I bumped into an error
data= loop.run_until_complete(router.async_get_data(AsusData.CLIENTS)
if I do the following

json.dumps(data)Traceback (most recent call last):  File "<stdin>", line 1, in <module>  File "/usr/lib/python3.11/json/__init__.py", line 231, in dumps    return _default_encoder.encode(obj)           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^  File "/usr/lib/python3.11/json/encoder.py", line 200, in encode    chunks = self.iterencode(o, _one_shot=True)             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  File "/usr/lib/python3.11/json/encoder.py", line 258, in iterencode    return _iterencode(o, 0)           ^^^^^^^^^^^^^^^^^  File "/usr/lib/python3.11/json/encoder.py", line 180, in default    raise TypeError(f'Object of type {o.__class__.__name__} 'TypeError: Object of type AsusClient is not JSON serializable

Any clues? Did I miss something?
Thank you,
Joachim

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    Incoming

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp