-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove padding whitespace to satisfy Tado (#182)
* Remove padding whitespace to satisfy Tado Taking iPhone requests as source of truth about the format of json payloads there should be no whitespace after comma (or anywhere that would be just spacing). Some devices (like Tado Internet Bridge) are really fussy about that, and sending json payload in Python's standard formatting will cause it to return error. I.e. sending perfectly valid json: {"characteristics":[{"iid":15, "aid":2, "ev":true}]} will not work, while: {"characteristics":[{"iid":15,"aid":2,"ev":true}]} is accepted. * Fixing #181 - strip whitespaces for tado devices Merging #182 Adding tests for the stripped spaces Stripping spaces also for put_characteristics * update contributors list in README * Compact json payloads * Extend regression tests Co-authored-by: Joachim Lusiardi <joachim@lusiardi.de>
- Loading branch information
Showing
3 changed files
with
128 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters