Felipe Martins Diel
9873af9bc4
Standardize ip_address option ( #630 )
2021-10-18 14:19:41 -03:00
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
d48d1347a3
Move constants to const.py ( #584 )
2021-04-29 18:59:58 -03:00
Felipe Martins Diel
fc5c33ee97
Use the absolute position to read the lock status ( #575 )
2021-04-26 17:57:02 -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
36b293bf05
Raise exceptions explicitly ( #569 )
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
Felipe Martins Diel
a11b7233c9
Improve repr(device) and str(device) ( #550 )
2021-03-11 02:51:29 -03:00
Felipe Martins Diel
90a43835e8
Reset connection ID and AES key before sending Client Key Exchange packets ( #549 )
2021-03-11 01:25:57 -03:00
Felipe Martins Diel
008846ba41
Fix index ( #533 )
2021-02-04 17:16:17 -03:00
Felipe Martins Diel
e12fd6f115
Make the type a class attribute ( #530 )
2021-01-29 18:22:58 -03:00
Felipe Martins Diel
21fa2a20bf
Add a function to send ping packets ( #526 )
...
Rename 'host' attribute to 'address' (ping) (#528 )
2021-01-29 18:22:58 -03:00
Felipe Martins Diel
9af3a3c56c
Clean up device.py ( #523 )
...
* Clean up device.send_packet()
* Clean up device.auth()
* Clean up scan()
2021-01-29 18:22:58 -03:00
Felipe Martins Diel
b33bbdbbcf
Fix encryption errors ( #505 )
2021-01-29 18:17:45 -03:00
Felipe Martins Diel
c3bb598e27
Timeout improvements ( #464 )
...
- 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 )
2021-01-29 18:17:45 -03:00
Felipe Martins Diel
bdc5432e2e
Clamp the packet count between 0x8000 and 0xFFFF ( #486 )
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
73dab5c3d5
Overload __str__ in the device class ( #468 )
2020-11-05 20:19:03 +01:00
Felipe Martins Diel
6f1f976e2f
Update packet count in the authentication step
2020-10-24 02:19:01 -07:00
Felipe Martins Diel
16abdf850f
Improve device discovery ( #438 )
...
This update improves device discovery by broadcasting several hello messages and ignoring repeated responses.
2020-10-18 00:47:21 -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
Felipe Martins Diel
28fa72f962
Make bind() optional and implement a generator for device discovery ( #427 )
2020-09-23 07:43:56 +02: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