Econnect-python

Latest version: v0.11.0

Safety actively analyzes 628499 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 3

0.8.0

What's Changed

Client/API
* Add `query.ALERTS` to query the system via a unified API. You can now query any data just by using `query()` (https://github.com/palazzem/econnect-python/pull/118)
* Response for `query.ALERTS` queries is now the same as `INPUTS` and `SECTORS` (https://github.com/palazzem/econnect-python/pull/119)
* Delete unused `_filter_data` function (https://github.com/palazzem/econnect-python/pull/120)

Testing Improvements

* Coveralls reports the actual code coverage (https://github.com/palazzem/econnect-python/pull/123)

Breaking Changes

* `client. get_status()` is replaced by `client.query(q.ALERTS)`
* The response from `client.query(q.ALERTS)` is different from before, so you should update your code in case you use it:
python
Before
response = {'alarm_led': 0}

After
response = {0: {"name": "alarm_led", "status": False}}


New Contributors

We'd like to extend our gratitude to our new contributors that made their first contribution 🎉
- xtimmy86x

Read the [full changeset](https://github.com/palazzem/econnect-python/compare/v0.7.0...v0.8.0) and the [release milestone](https://github.com/palazzem/econnect-python/milestone/10?closed=1).

0.7.0

What's Changed

Client/API
* feat(client): implement `get_status()` to retrieve the main unit anomalies/alarms/tampering (https://github.com/palazzem/econnect-python/pull/116)


Read the [full changeset](https://github.com/palazzem/econnect-python/compare/v0.6.0...v0.7.0) and the [release milestone](https://github.com/palazzem/econnect-python/milestone/9?closed=1).

0.6.0

What's Changed

Client/API

* feat: IESS Metronet systems are now supported! You can check the [documentation](https://github.com/palazzem/econnect-python/blob/b93350028e57972fb6122ba5d47c2922ca8a2180/README.md#connecting-to-systems) to see how to query the right endpoint. (https://github.com/palazzem/econnect-python/pull/111)

Breaking Changes

* refactor!: remove `AlarmDevice` component. The device is now available in the [Home Assistant Integration](https://github.com/palazzem/ha-econnect-alarm). (https://github.com/palazzem/econnect-python/pull/113)


Read the [full changeset](https://github.com/palazzem/econnect-python/compare/v0.5.1...v0.6.0) and the [release milestone](https://github.com/palazzem/econnect-python/milestone/7?closed=1).

0.5.1

What's Changed

Client/API
* fix(client): sector/input name defaults to `Unknown` if the main unit is out of sync with the cloud (https://github.com/palazzem/econnect-python/pull/101)
* feat(client): add DEBUG logging to `ElmoClient` (https://github.com/palazzem/econnect-python/pull/99)

Breaking Changes
* feat!: drop support for EOL Python versions; the project currently support Python 3.8 -> 3.11 (https://github.com/palazzem/econnect-python/pull/94)

Dependencies and Packaging
* Updated development dependencies (https://github.com/palazzem/econnect-python/pull/70)
* refactor!: merge 'v0.4.0' release into 'main' (https://github.com/palazzem/econnect-python/pull/90)
* refactor!: migrate the whole project to `pyproject.toml` project definition (https://github.com/palazzem/econnect-python/pull/92)
* tools: use pre-commit hooks to run linters and static analyzers (https://github.com/palazzem/econnect-python/pull/93)
* package: ensure project name is `econnect-python`; `pytest` Python PATH is `src` (https://github.com/palazzem/econnect-python/pull/106)

Testing Improvements
* tests: encapsulate mock calls inside tests and provide a new client for integrations tests (https://github.com/palazzem/econnect-python/pull/96)
* refactor!: `AlarmDevice` uses integration test client to ensure `update()` compatibility with the new API (https://github.com/palazzem/econnect-python/pull/97)

Read the [full changeset](https://github.com/palazzem/econnect-python/compare/v0.4.0...v0.5.1) and the [release milestone](https://github.com/palazzem/econnect-python/milestone/6?closed=1).

0.5.0

Outdated Build

Regrettably, due to a misconfigured builder, we released a version of the package that did not import the project correctly. This issue has been addressed, and we have rolled out a new [0.5.1](https://github.com/palazzem/econnect-python/releases/tag/v0.5.1) version containing the same changes but with the correct build.

To prevent the distribution of this flawed version, we are removing this release from PyPi. If you're interested in understanding the adjustments made to rectify the issue, please refer to our builder change (107).

What's Changed

Client/API
* fix(client): sector/input name defaults to `Unknown` if the main unit is out of sync with the cloud (https://github.com/palazzem/econnect-python/pull/101)
* feat(client): add DEBUG logging to `ElmoClient` (https://github.com/palazzem/econnect-python/pull/99)

Breaking Changes
* feat!: drop support for EOL Python versions; the project currently support Python 3.8 -> 3.11 (https://github.com/palazzem/econnect-python/pull/94)

Dependencies and Packaging
* Updated development dependencies (https://github.com/palazzem/econnect-python/pull/70)
* refactor!: merge 'v0.4.0' release into 'main' (https://github.com/palazzem/econnect-python/pull/90)
* refactor!: migrate the whole project to `pyproject.toml` project definition (https://github.com/palazzem/econnect-python/pull/92)
* tools: use pre-commit hooks to run linters and static analyzers (https://github.com/palazzem/econnect-python/pull/93)
* package: ensure project name is `econnect-python`; `pytest` Python PATH is `src` (https://github.com/palazzem/econnect-python/pull/106)

Testing Improvements
* tests: encapsulate mock calls inside tests and provide a new client for integrations tests (https://github.com/palazzem/econnect-python/pull/96)
* refactor!: `AlarmDevice` uses integration test client to ensure `update()` compatibility with the new API (https://github.com/palazzem/econnect-python/pull/97)

Read the [full changeset](https://github.com/palazzem/econnect-python/compare/v0.4.0...v0.5.0) and the [release milestone](https://github.com/palazzem/econnect-python/milestone/6?closed=1).

0.4.0

Community Improvements!

To foster growth and fortify support for this library, we've initiated steps to streamline external contributions. Our goal is to ensure clarity in our guidelines, making it straightforward for contributors to get their code merged. To this end, we've integrated the following changes:

- **GitHub Actions CI Migration**: This is a shift towards an efficient Continuous Integration process.
- **GitHub Templates**: We've added templates for both pull requests and issues, simplifying the process to report bugs, request features, and contribute.
- **Contribution Guidelines**: Introduced to maintain a consistent code and standards across the board.

We're excited to announce that our project roadmap is now public! If you're keen on keeping tabs on our development journey, peek into our [next release roadmap](https://github.com/users/palazzem/projects/3/views/1). Plus, for those who have questions or seek support regarding this library or its Home Assistant integration version, we've launched a dedicated Discord channel. [We invite you to join](https://discord.gg/NSmAPWw8tE)!

While these improvements are not that significant, they're the beginning. Our commitment is to continually update and rejuvenate the development of this library. A heartfelt thanks to our vibrant community for your invaluable feedback, bug reports, and engaging discussions on feature enhancements!

What's Changed

Dependencies and Requirements

- Update supported Python versions: removed 3.5 (EOL) and added 3.9 (https://github.com/palazzem/econnect-python/pull/60) - this change is to respect the development of `0.4.0`. We'll update the test matrix in the upcoming release.

Client/API
- `ElmoClient` constructor has defaults to establish the connection (https://github.com/palazzem/econnect-python/pull/61)
- Introduce a safer API so that only HTTPS urls can be used (https://github.com/palazzem/econnect-python/pull/63)
- The client now handles session token expiration (10m) (https://github.com/palazzem/econnect-python/pull/64)
- Improved error handling to provide better descriptions in case of exceptions (https://github.com/palazzem/econnect-python/pull/65)
- Ensure `unlock()` is called even if an exception is raised in the block (https://github.com/palazzem/econnect-python/pull/66)
- Implement long-polling to retrieve state updates (https://github.com/palazzem/econnect-python/pull/67)
- Add support for selective exclusion and readmission of inputs (https://github.com/palazzem/econnect-python/pull/55 - thanks davidecavestro!)
- Remove `check()` API (https://github.com/palazzem/econnect-python/pull/71)
- Refactor `query()` API so that a raw query is returned; add `excluded` field to returned dict (https://github.com/palazzem/econnect-python/issues/57, https://github.com/palazzem/econnect-python/pull/72)
- `query()` API returns also `last_id` field; items are grouped under `sectors` or `inputs` keys (https://github.com/palazzem/econnect-python/pull/73)
- Include `status` field in `query()` API (https://github.com/palazzem/econnect-python/pull/74)

Documentation
- Better description about how to use `secret-code` in the README example (https://github.com/palazzem/econnect-python/pull/62/)

Read the [full changeset](https://github.com/palazzem/econnect-python/compare/v0.3.1...v0.4.0) and the [release milestone](https://github.com/palazzem/econnect-python/milestone/5?closed=1).

Page 2 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.