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
Then HA started to throw an error "'list' object is not callable" when this command should be executed.
It was not high on my priority list, but now I played around a bit to figure out how to fix it. I also tried to make a new command from scratch in a script with the visual editor in HA, but end up with the same error. Also tried to give the argument list as "args: [33, 0, 1, 1]", but this does also not change anything (and is retranslated by the visual editor to the above when switching back and forth anyway).
When trying around further, I also experienced also that the "dir: 0" forces HA to stay in yaml editor mode, as soon as it is removed it switches automatically to the input mask/visual editor (but that's probably not relevant, maybe just because the input mask has no field for "direction".
Strangely, even if I remove the "args:"-section completely, I still end up with the "'list' object is not callable" error. I also searched through different HA forums, but did not find any matching problem.
As the code above was working fine, I was wondering whether something was changed in the way lists of arguments are processed by ZHA Toolkit in one of the previous updates?
The text was updated successfully, but these errors were encountered:
ZHA/zigpy has undergone quite a lot of changes itself and I think that zcl_cmd needs to be adapted to that.
Probably the list of bytes must be provided in a different way - I guess an objet with a method on it (probably to serialize the data) - I did not look at zigpy/zha for this.
I used zcl_cmd to send a custom cluster command for candle effect to a Hue Play. The code below worked fine until a few months ago:
Then HA started to throw an error "'list' object is not callable" when this command should be executed.
It was not high on my priority list, but now I played around a bit to figure out how to fix it. I also tried to make a new command from scratch in a script with the visual editor in HA, but end up with the same error. Also tried to give the argument list as "args: [33, 0, 1, 1]", but this does also not change anything (and is retranslated by the visual editor to the above when switching back and forth anyway).
When trying around further, I also experienced also that the "dir: 0" forces HA to stay in yaml editor mode, as soon as it is removed it switches automatically to the input mask/visual editor (but that's probably not relevant, maybe just because the input mask has no field for "direction".
Strangely, even if I remove the "args:"-section completely, I still end up with the "'list' object is not callable" error. I also searched through different HA forums, but did not find any matching problem.
As the code above was working fine, I was wondering whether something was changed in the way lists of arguments are processed by ZHA Toolkit in one of the previous updates?
The text was updated successfully, but these errors were encountered: