zigpy / zigpy-cli

Command line interface for zigpy
GNU General Public License v3.0
44 stars 12 forks source link

[BUG] no attribute 'attribute_updated' on 'permit' #33

Closed Kochise closed 1 year ago

Kochise commented 1 year ago

Hi,

Fresh Python install :

pip install zigpy
pip install zigpy-cli
pip install zigpy-xbee
pip install zigpy-znp
pip install bellows
pip install zha-quirks

Then :

zigpy radio znp com10 reset
zigpy radio znp com10 form
zigpy radio znp com10 info

Getting :

PAN ID:                0x7486
Extended PAN ID:       d1:39:b5:2c:db:0b:04:25
Channel:               20
Channel mask:          [20]
NWK update ID:         0
Device IEEE:           00:12:4b:00:2a:2e:c1:cd
Device NWK:            0x0000
Network key:           13:76:a0:98:2a:6a:d1:3c:52:38:f7:0f:2d:7c:7a:61
Network key sequence:  0
Network key counter:   0

Now when I pair various devices (RGB bulb, contactless switch, temperature sensor), I get :

D:\TEST>zigpy radio znp com10 permit
2023-04-07 10:10:59.562 TEST zigpy.util WARNING Error calling listener <bound method ClusterPersistingListener.attribute_updated of <zigpy.zcl.ClusterPersistingListener object at 0x0000028E6D3B10F0>> with args (4, 'HEIMAN'): AttributeError("'NoneType' object has no attribute 'attribute_updated'")
2023-04-07 10:10:59.562 TEST zigpy.util WARNING Error calling listener <bound method ClusterPersistingListener.attribute_updated of <zigpy.zcl.ClusterPersistingListener object at 0x0000028E6D3B10F0>> with args (5, 'ColorLight'): AttributeError("'NoneType' object has no attribute 'attribute_updated'")

D:\TEST>zigpy radio znp com10 permit
2023-04-07 11:54:16.742 TEST zigpy.util WARNING Error calling listener <bound method ClusterPersistingListener.attribute_updated of <zigpy.zcl.ClusterPersistingListener object at 0x000002356E4219F0>> with args (4, 'eWeLink'): AttributeError("'NoneType' object has no attribute 'attribute_updated'")
2023-04-07 11:54:16.742 TEST zigpy.util WARNING Error calling listener <bound method ClusterPersistingListener.attribute_updated of <zigpy.zcl.ClusterPersistingListener object at 0x000002356E4219F0>> with args (5, 'WB01'): AttributeError("'NoneType' object has no attribute 'attribute_updated'")

Additional '-vv' log is zigpy_cli_permit_attribute_updated_bug.txt

Regards.

puddly commented 1 year ago

Fixed with https://github.com/zigpy/zigpy/pull/1203