* 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
* Add new SP4L-UK type
* Switch: SP4 check power and nightlight to return as boolean
Co-authored-by: Felipe Martins Diel <41558831+felipediel@users.noreply.github.com>
* Refactor the LB1 class
* General improvements
* Enumerate bulb color modes
* Clean up encoder
Co-authored-by: Felipe Martins Diel <felipe-diel@hotmail.com>
- Only start to count the timer inside the lock.
- Improve precision of the timeout option.
- Use a context manager for the connection.
- Remove SO_REUSEADDR option.
Amend: Revert retry_intvl (#506)
Add support for Broadlink RM4C mini (0x6539) (#476)
Add support for Broadlink RM4 pro (0x653C) (#472)
Add support for Broadlink RM4S (0x6364) (#475)
Add support for Broadlink MCB1 (0x756F) (#478)
Add support for Broadlink MCB1 (0xA56A) (#478)
Add support for Broadlink RM mini 3 (0x6508) (#479)
Add support for Efergy Ego (0x271D) (#481)
Add support for Broadlink SCB1E (0x5115) (#514)
Add support for Broadlink SCB1E (0x6113) (#488)
Add support for Broadlink SP4L-EU (0x618B) (#489)
Add support for Broadlink SP4L-UK (0xA589) (#491)
Add support for Broadlink RM3 mini (0x27d3) (#493)
Add support for Broadlink SP4L-AU (0x6489) (#498)
Add support for BG Electrical AHC/U-01 (0x51E2) (#497)
Add support for Broadlink MCB1 (0x6111) (#509)
* Fix lint errors
* Remove rm2 class
* Rename cs to conn
* Add __repr__ to device class
* Make get_devices() a dictionary
* Clean up alarm kit
* Add module doscstrings
* Fix MAC address conversion
* Add SP4 device class
* Remove legacy byte conversion
* Implement suggested improvements
* Apply some love to _encode() and _decode() too.
* Remove unnecessary safeguards
* Remove unnecessary return values
* Add missing periods to the comments.
Co-authored-by: Martin Samuelsson <httpov@columbiegg.com>