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

small tweaks to simplify #291

Closed gstein closed 1 year ago

gstein commented 1 year ago

Both floor() functions are unused, and math.ceil() is easily replaced.

uzlonewolf commented 1 year ago

Very nice! I like the math elimination.

Looks like that floor() function used to be used in the scanner before the rewrite.

jasonacox commented 1 year ago

Thanks @gstein !