diff --git a/homeassistant/components/vesync/manifest.json b/homeassistant/components/vesync/manifest.json index 195a3315341..99603dc32d2 100644 --- a/homeassistant/components/vesync/manifest.json +++ b/homeassistant/components/vesync/manifest.json @@ -16,5 +16,5 @@ "iot_class": "cloud_polling", "loggers": ["pyvesync"], "quality_scale": "bronze", - "requirements": ["pyvesync==3.4.1"] + "requirements": ["pyvesync==3.4.2"] } diff --git a/requirements_all.txt b/requirements_all.txt index b026935a945..1f00906e1a1 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -2785,7 +2785,7 @@ pyvera==0.3.16 pyversasense==0.0.6 # homeassistant.components.vesync -pyvesync==3.4.1 +pyvesync==3.4.2 # homeassistant.components.vizio pyvizio==0.1.61 diff --git a/tests/components/vesync/common.py b/tests/components/vesync/common.py index ba6cace3785..689780a8b19 100644 --- a/tests/components/vesync/common.py +++ b/tests/components/vesync/common.py @@ -56,7 +56,7 @@ DEVICE_FIXTURES: dict[str, list[tuple[str, str, str]]] = { ("post", "/cloud/v2/deviceManaged/bypassV2", "air-purifier-detail.json") ], "Dimmable Light": [ - ("post", "/cloud/v1/deviceManaged/deviceDetail", "device-detail.json") + ("post", "/cloud/v1/deviceManaged/deviceDetail", "dimmable-light-detail.json") ], "Temperature Light": [ ("post", "/cloud/v1/deviceManaged/bypass", "light-detail.json") diff --git a/tests/components/vesync/fixtures/dimmable-light-detail.json b/tests/components/vesync/fixtures/dimmable-light-detail.json new file mode 100644 index 00000000000..508c73fb75d --- /dev/null +++ b/tests/components/vesync/fixtures/dimmable-light-detail.json @@ -0,0 +1,22 @@ +{ + "traceId": "1234", + "code": 0, + "msg": "request success", + "module": null, + "stacktrace": null, + "result": { + "deviceName": "Dimmable", + "name": "Dimmable", + "brightNess": "80", + "deviceStatus": "on", + "activeTime": 0, + "defaultDeviceImg": "https://image.vesync.com/defaultImages/ESL100_Series/icon_dimmable_bulb_80.png", + "timer": null, + "scheduleCount": 0, + "away": null, + "schedule": null, + "ownerShip": "1", + "deviceImg": "https://image.vesync.com/defaultImages/deviceDefaultImages/wifismartbulb_240.png", + "connectionStatus": "online" + } +} diff --git a/tests/components/vesync/snapshots/test_light.ambr b/tests/components/vesync/snapshots/test_light.ambr index 6d75eefba0a..20ccca55b3e 100644 --- a/tests/components/vesync/snapshots/test_light.ambr +++ b/tests/components/vesync/snapshots/test_light.ambr @@ -300,6 +300,8 @@ # name: test_light_state[Dimmable Light][light.dimmable_light] StateSnapshot({ 'attributes': ReadOnlyDict({ + 'brightness': 204, + 'color_mode': , 'friendly_name': 'Dimmable Light', 'supported_color_modes': list([ , @@ -311,7 +313,7 @@ 'last_changed': , 'last_reported': , 'last_updated': , - 'state': 'unavailable', + 'state': 'on', }) # --- # name: test_light_state[Dimmer Switch][devices] diff --git a/tests/components/vesync/snapshots/test_update.ambr b/tests/components/vesync/snapshots/test_update.ambr index b5c0a65209d..a3f62165857 100644 --- a/tests/components/vesync/snapshots/test_update.ambr +++ b/tests/components/vesync/snapshots/test_update.ambr @@ -662,17 +662,27 @@ # name: test_update_state[Dimmable Light][update.dimmable_light_firmware] StateSnapshot({ 'attributes': ReadOnlyDict({ + 'auto_update': False, 'device_class': 'firmware', + 'display_precision': 0, 'entity_picture': '/api/brands/integration/vesync/icon.png', 'friendly_name': 'Dimmable Light Firmware', + 'in_progress': False, + 'installed_version': '1.0.0', + 'latest_version': '1.0.1', + 'release_summary': None, + 'release_url': None, + 'skipped_version': None, 'supported_features': , + 'title': None, + 'update_percentage': None, }), 'context': , 'entity_id': 'update.dimmable_light_firmware', 'last_changed': , 'last_reported': , 'last_updated': , - 'state': 'unavailable', + 'state': 'on', }) # --- # name: test_update_state[Dimmer Switch][devices]