Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor Connections / Websocket / Other cleanup #562

Open
wants to merge 37 commits into
base: master
Choose a base branch
from

Conversation

hahn-th
Copy link
Owner

@hahn-th hahn-th commented Feb 22, 2025

  • use httpx >= 27.2 for rest requests
  • Completly rewritten rest handling
  • bump websockets to 13.1
  • complelty rewrite web socket handling
  • make the lib async first.
  • Dropped all AsyncDevice, Groups and so on classes. Async and NonAsync functions are now in the same class
  • Removed all Samples because they are outdated
  • Add a RateLimitedRestConnection class, which uses the Token Bucket Algorithm to limit requests to avoid throttling.
  • Dropped AsyncAuth class. All authentication is now in class

# Conflicts:
#	.github/workflows/publish.yml
#	.github/workflows/test-on-push.yml
#	pyproject.toml
#	requirements.txt
#	requirements_dev.txt
#	src/homematicip/aio/auth.py
#	src/homematicip/aio/class_maps.py
#	src/homematicip/aio/device.py
#	src/homematicip/auth.py
#	src/homematicip/base/base_connection.py
#	src/homematicip/base/functionalChannels.py
#	src/homematicip/cli/hmip_generate_auth_token.py
#	src/homematicip/home.py
#	tests/test_functional_channels.py
#	tests/test_websocket.py
# Conflicts:
#	src/homematicip/aio/class_maps.py
#	src/homematicip/aio/device.py
#	src/homematicip/base/functionalChannels.py
#	tests/aio_tests/test_async_device.py
#	tests/test_devices.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant