New Features
Thanks markin for helping with these new features! (draft PR: 44)
* The project has been officially released on PyPI as `econnect-python` (42, 52)
* Extend `arm()` and `disarm()` with a `sector` kwarg to enable/disable one or multiple sectors (46)
* Handle authentication redirects (49)
* Add `client.query()` public API (50)
Improvements
* Use Authentication API instead of scraping the `SessionID` (47)
Breaking Changes
* Remove Settings module (21, 51)
* Refactor global status `check()` (48). The method returns a dictionary with different keys:
python
Before
{
"areas_armed": [{"id": 0, "name": "Entryway"}, ...],
"areas_disarmed": [{"id": 1, "name": "Kitchen"}, ...],
"inputs_alerted": [{"id": 0, "name": "Door"}, ...],
"inputs_wait": [{"id": 1, "name": "Window"}, ...],
}
After
{
"sectors_armed": [{"id": 0, "name": "Entryway", "element": 1, "index": 0}, ...],
"sectors_disarmed": [{"id": 1, "name": "Kitchen", "element": 2, "index": 1}, ...],
"inputs_alerted": [{"id": 0, "name": "Door", "element": 3, "index": 0}, ...],
"inputs_wait": [{"id": 1, "name": "Window", "element": 4, "index": 1}, ...],
}
Read the [full changeset](https://github.com/palazzem/econnect-python/compare/0.2.0...v0.3.0) and the [release milestone](https://github.com/palazzem/econnect-python/milestone/3?closed=1).