Felipe Martins Diel
6a54803a36
Improve code quality ( #585 )
...
* Improve docstrings
* Fix line-too-long
* Disable unidiomatic-typecheck
* Move smart plugs to the top
* Use constants from const.py
* Run black
2021-04-29 19:51:22 -03:00
Felipe Martins Diel
12fdf01631
Improve code quality ( #572 )
...
* Improve typing
* Use better names
* Clean up switch.py
* Remove unused import
* Run black
* Remove unnecessary comments
* Clean up climate.py
2021-04-26 17:57:02 -03:00
Felipe Martins Diel
b77e803864
Use CamelCase for the Device class ( #570 )
2021-04-26 17:57:02 -03:00
Felipe Martins Diel
1a8ee21a34
Make better use of namespaces ( #564 )
...
Use namespaces for typing and exceptions.
2021-04-26 17:57:02 -03:00
Johnson Chin
f3e4edcad4
Add support for Broadlink SP4L-UK (0x7587) ( #561 )
...
* 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>
2021-04-26 17:57:02 -03:00
Felipe Martins Diel
1b73cfce3a
Split the sp2 class into smaller classes ( #521 )
2021-02-16 16:38:10 -03:00
Felipe Martins Diel
e12fd6f115
Make the type a class attribute ( #530 )
2021-01-29 18:22:58 -03:00
Felipe Martins Diel
448e3026df
Filter unsupported features and convert sensor data to float ( #495 )
2021-01-29 18:17:45 -03:00
Felipe Martins Diel
1b3fd16321
Fix MP1's check_power_raw() annotation ( #485 )
...
This method returns an integer.
2021-01-29 18:17:45 -03:00
Felipe Martins Diel
1ad468aefe
Clean up get_energy() ( #471 )
...
Amend: Fix sp3s energy monitoring (#504 )
2021-01-29 18:17:45 -03:00
Kendell R
dfd3372c36
Add GH Actions ( #470 )
...
Add GitHub actions and run black.
2021-01-29 18:17:45 -03:00
Felipe Martins Diel
1d81ebd1d0
Rename SP4L to SP4 and SP4M to SP4B
2020-11-05 02:11:37 -08:00
Felipe Martins Diel
957baf5447
Add support for Broadlink SP4M-US (0x648b) ( #447 )
2020-10-18 13:22:03 -07:00
Felipe Martins Diel
e1fa54f874
Fix SP4 class ( #445 )
2020-10-18 00:50:15 -07:00
Felipe Martins Diel
0dc0068d63
Improve code quality ( #428 )
...
* 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
2020-09-24 07:36:12 +02:00
Tamarinen
9248ee6b0c
Add sp4 refactored ( #429 )
...
* 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>
2020-09-22 17:58:07 -07:00
Felipe Martins Diel
5ef4124491
Remove legacy byte conversions
2020-09-20 17:11:14 -07:00
Felipe Martins Diel
08c020e597
Call Mr. Krueger
2020-09-20 02:10:18 -07:00