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

Fixes an issue where device direct was not honored on status refresh #43

Merged
merged 1 commit into from
Jan 23, 2024

Conversation

cjaliaga
Copy link
Owner

This pull request fixes an issue where device direct was not honored on status refresh. This could cause some delays trying to get the latest updated data from the device.

This commit refactors the `Client` class and `DeviceImpl` class in the `core.py` file. The changes include:
- Replacing `data=urllib.parse.urlencode(params)` with `params=params` in the `Client` class.
- Adding type hints for the `zones` parameter in the `__set_special_status__` method of the `Client` class.
- Formatting the code for better readability
@cjaliaga cjaliaga added the bug Something isn't working label Jan 23, 2024
@cjaliaga cjaliaga merged commit ca986a9 into main Jan 23, 2024
@cjaliaga cjaliaga deleted the device-direct branch January 23, 2024 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant