Skip to content

Conversation

@deltamikeromeo
Copy link

Addressed issues causing the thermostat to be unresponsive and enhanced compatibility with other devices. Updated code formatting and improved debugging information for better error handling.

Fixed exception re-raising in set_thermostat_mode:
When catching a DaikinServiceException, the code now correctly passes the required status argument from the original exception when re-raising.
This resolves the TypeError: DaikinServiceException.init() missing 1 required positional argument: 'status'.

Improved error logging:
The error message now includes the full request body (as JSON) and the original exception details, making debugging easier.

No changes to API request logic or payload structure.
The request body and method for setting the thermostat mode remain unchanged.

These changes ensure that errors are properly propagated and logged, and that the custom exception is constructed with all required arguments.

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