Skip to content

Commit

Permalink
Add flip image button
Browse files Browse the repository at this point in the history
  • Loading branch information
RenierM26 committed Feb 2, 2025
1 parent 0c41822 commit 43b94eb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions custom_components/ezviz_cloud/button.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,12 @@ class EzvizButtonEntityDescription(ButtonEntityDescription):
method=lambda pyezviz_client, serial: pyezviz_client.reboot_camera(serial),
supported_ext=str(SupportExt.SupportRebootDevice.value),
),
EzvizButtonEntityDescription(
key="flip_image",
translation_key="flip_image",
method=lambda pyezviz_client, serial: pyezviz_client.flip_image(serial),
supported_ext=str(SupportExt.SupportPtzCenterMirror.value),
),
)


Expand Down
2 changes: 1 addition & 1 deletion custom_components/ezviz_cloud/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
"issue_tracker": "https://github.com/RenierM26/ha-ezviz/issues",
"loggers": ["paho_mqtt", "pyezvizapi"],
"requirements": ["pyezvizapi==1.0.0.9"],
"version": "0.1.0.58"
"version": "0.1.0.59"
}

0 comments on commit 43b94eb

Please sign in to comment.