1
0
mirror of https://github.com/mjg59/python-broadlink.git synced 2024-09-21 04:20:36 +02:00
python-broadlink/broadlink
Felipe Martins Diel 86b5d0727c Improve CRC-16 function (#565)
* Rename calculate_crc16 to crc16

* Apply PEP-8 naming conventions

* Remove unnecessary import

* Accept any sequence type

* Remove unnecessary conversions

* Expose polynomial and initial value as kwargs

* Remove unnecessary bitwise operations

* Store the CRC-16 table for performance

* Add missing type hints

* Update docstring

* General improvements
2021-04-26 17:57:02 -03:00
..
__init__.py Make better use of namespaces (#564) 2021-04-26 17:57:02 -03:00
alarm.py Make better use of namespaces (#564) 2021-04-26 17:57:02 -03:00
climate.py Improve CRC-16 function (#565) 2021-04-26 17:57:02 -03:00
cover.py Make better use of namespaces (#564) 2021-04-26 17:57:02 -03:00
device.py Make better use of namespaces (#564) 2021-04-26 17:57:02 -03:00
exceptions.py Improve exceptions (#551) 2021-03-11 04:33:14 -03:00
helpers.py Improve CRC-16 function (#565) 2021-04-26 17:57:02 -03:00
light.py Make better use of namespaces (#564) 2021-04-26 17:57:02 -03:00
protocol.py Clean up device.py (#523) 2021-01-29 18:22:58 -03:00
remote.py Make better use of namespaces (#564) 2021-04-26 17:57:02 -03:00
sensor.py Make better use of namespaces (#564) 2021-04-26 17:57:02 -03:00
switch.py Make better use of namespaces (#564) 2021-04-26 17:57:02 -03:00