Fix setting Reolink focus (#89374)

fix setting focus
pull/89379/head
starkillerOG 2023-03-08 12:25:51 +01:00 committed by GitHub
parent 452e1d341d
commit 9381865f1c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ NUMBER_ENTITIES = (
get_max_value=lambda api, ch: api.zoom_range(ch)["focus"]["pos"]["max"],
supported=lambda api, ch: api.supported(ch, "zoom"),
value=lambda api, ch: api.get_focus(ch),
method=lambda api, ch, value: api.set_zoom(ch, int(value)),
method=lambda api, ch, value: api.set_focus(ch, int(value)),
),
# "Floodlight turn on brightness" controls the brightness of the floodlight when
# it is turned on internally by the camera (see "select.floodlight_mode" entity)