muhlba91 / onyx-client Goto Github PK
View Code? Open in Web Editor NEWPython Client for Hella's ONYX.CENTER API
License: MIT License
Python Client for Hella's ONYX.CENTER API
License: MIT License
Is your feature request related to a problem? Please describe.
The ONYX API introduced a new endpoint /events
in v2
which sends JSON PATCH updates on an open connection.
Use Case: polling services can lower their polling interval for full updates and rely on automatic pushes
Describe the solution you'd like.
Implement the new endpoint through streaming.
Additional context.
See hella-info/onyx_api#4.
aiohttp throws Unexpected exception: ClientPayloadError('Response payload is not completed')
after 10-15 minutes of streaming.
this is the cause for muhlba91/onyx-homeassistant-integration#30
With hella-info/onyx_api#7 (comment) an update to the API documentation will be provided. Once updated, implement mappings for all expected device types.
The client class (https://github.com/muhlba91/onyx-client/blob/main/onyx_client/client.py) is 400+ lines long. The test cases for it are 1100+ lines.
With time, this is not maintainable and there's no overview guaranteed. Some of the methods are typical "utility/helper" functions which can be extracted.
cross created for muhlba91/onyx-homeassistant-integration#8
all devices should contain their properties when calling the /devices/<id>
endpoint.
however, as shown, some devices do not contain them (under investigation).
despite working around and not relying on properties, we need to know the implications to any integrations (like HA).
possible work-arounds are error-correction (empty/0 values) or filtering those devices.
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
This repository currently has no open or pending branches.
.github/workflows/release.yml
google-github-actions/release-please-action v4
actions/checkout v4
actions/setup-python v5
.github/workflows/verify.yml
actions/checkout v4
actions/setup-python v5
abatilo/actions-poetry v3
coverallsapp/github-action v2
actions/checkout v4
actions/setup-python v5
package.json
all-contributors-cli ^6.24.0
pyproject.toml
python ^3.12
aiohttp ^3.8.5
asyncio ^3.4.0
pytest ^8.0.0
pytest-cov ^5.0.0
coverage ^7.0.0
pre-commit ^3.1.1
pytest-asyncio ^0.23.0
aioresponses ^0.7.4
ruff ^0.3.0
Describe the bug.
API v2 was unstable; hence, Hella release v3. v3 breaks the integration due to property changes.
To Reproduce.
Steps to reproduce the behavior:
Expected behavior.
Values are updated properly and according to v3.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.