-
-
Notifications
You must be signed in to change notification settings - Fork 32.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This adds tests for support of the following VeSync devices: * Humidifier Classic 300s * Air Purifier Core 300s * Outlet ESW01-EU (10A Indoor Round Plug) * Outlet ESO15-TB (Outdoor Plug) These devices were all either supported by the VeSync plugin previously or enabled within the plugin with the changes made in the previous commits to pull supported devices from the pyvesync module. This renames the previous "Outlet" test entity to "Outlet 7A" to reflect the fact that it is no longer the only outlet being tested, but it is the only 7A outlet currently supported. A custom API response for the outdoor plug details needed to be added because it supports sub-devices for the two individual sockets it controls which requires a new flavor of details response in order for the pyvesync module to correctly parse the details.
- Loading branch information
1 parent
418399a
commit 6d1ba9a
Showing
9 changed files
with
1,703 additions
and
84 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
{ | ||
"code": 0, | ||
"deviceStatus": "on", | ||
"activeTime": 10, | ||
"energy": 100, | ||
|
25 changes: 25 additions & 0 deletions
25
tests/components/vesync/fixtures/outlet-outdoor-detail.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"code": 0, | ||
"msg": null, | ||
"connectionStatus": "online", | ||
"activeTime": 20, | ||
"energy": 200, | ||
"power": 50, | ||
"voltage": 240, | ||
"deviceStatus": "on", | ||
"deviceName": "Outlet Outdoor Plug", | ||
"subDevices": [ | ||
{ | ||
"subDeviceNo": 1, | ||
"defaultName": "Socket A", | ||
"subDeviceName": "Outlet Outdoor Plug", | ||
"subDeviceStatus": "on" | ||
}, | ||
{ | ||
"subDeviceNo": 2, | ||
"defaultName": "Socket B", | ||
"subDeviceName": "Outlet Outdoor Plug", | ||
"subDeviceStatus": "on" | ||
} | ||
] | ||
} |
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
Oops, something went wrong.