jasonacox / tinytuya

Python API for Tuya WiFi smart devices using a direct local area network (LAN) connection or the cloud (TuyaCloud API).
MIT License
923 stars 165 forks source link

Typo or intentional? #333

Closed teejo75 closed 1 year ago

teejo75 commented 1 year ago

https://github.com/jasonacox/tinytuya/blob/de222a5bae96b0ef1bf0c5babf0d6e79648f13ce/tinytuya/scanner.py#L71

Is that supposed to be ablilty?

uzlonewolf commented 1 year ago

That's what devices report. It's a typo on Tuya's part, just like boardcast.

uzlonewolf commented 1 year ago

Hmm, of the 61 devices currently active on my network, 54 are reporting ablilty while 7 are reporting ability. Fun. Not sure if we should try to normalize this key, it doesn't appear to be used anywhere.

teejo75 commented 1 year ago

Thanks for the insight. I searched the codebase and there were no code hits for 'ability' and only scanner.py for the typo. I was curious.