question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

handle_cluster_request() takes 3 positional arguments but 5 were given

See original GitHub issue

I’m getting the following error message, so I thought I should let you know. I’m using latest version of Home Assistant, not sure what zigpy version comes along with it. Hopefully is the latest.

Logger: zigpy_deconz.uart
Source: /usr/local/lib/python3.9/site-packages/zigpy_deconz/uart.py:94
First occurred: October 14, 2021, 5:28:57 PM (16 occurrences)
Last logged: 8:35:53 AM

Unexpected error handling the frame: handle_cluster_request() takes 3 positional arguments but 5 were given

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
Adminiugacommented, Oct 21, 2021

the problem is in https://github.com/zigpy/zha-device-handlers/blob/2d5d68cb71b4856fdf980a6270f1b1cd1003668b/zhaquirks/tuya/__init__.py#L837 it should be

super().handle_cluster_request(hdr, args, dst_addressing)`

the self, should be removed

1reaction
smmorozcommented, Oct 27, 2021

Guys, this has been fixed here #1097

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeError: __init__() takes 3 positional arguments but 5 were ...
Tweepy v4.0.0 changed Stream to allow passing credentials like that when initializing, instead of auth and listener parameters.
Read more >
TypeError _call_() takes 3 positional arguments but 5 were given
I am trying to run cutadapt with the command below but I keep getting the same error: TypeErrror: call() takes 3 positional arguments...
Read more >
TypeError: __init__() takes 3 positional arguments but 4 were ...
TypeError: __init__() takes 3 positional arguments but 4 were given. How to fix this error? https://code.sololearn.com/cRi11cpb83oi/?ref=app.
Read more >
CalculateGeometryAttributes() takes from 0 to 5 positional ...
Technical Article Details : Error: TypeError: CalculateGeometryAttributes() takes from 0 to 5 positional arguments but 6 were given.
Read more >
load_state_dict() takes from 2 to 3 positional arguments but 4 ...
TypeError: load_state_dict() takes from 2 to 3 positional arguments but 4 were given The source code is as follows def generate(self): self.net ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found