mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-08-06 10:44:04 +00:00
Add pan tilt camera module (#1261)
Add ptz controls for smartcameras. --------- Co-authored-by: Teemu R. <tpr@iki.fi>
This commit is contained in:
@@ -160,12 +160,14 @@ async def test_precision_hint(dummy_feature, precision_hint):
|
||||
|
||||
async def test_feature_setters(dev: Device, mocker: MockerFixture):
|
||||
"""Test that all feature setters query something."""
|
||||
# setters that do not call set on the device itself.
|
||||
internal_setters = {"pan_step", "tilt_step"}
|
||||
|
||||
async def _test_feature(feat, query_mock):
|
||||
if feat.attribute_setter is None:
|
||||
return
|
||||
|
||||
expecting_call = True
|
||||
expecting_call = feat.id not in internal_setters
|
||||
|
||||
if feat.type == Feature.Type.Number:
|
||||
await feat.set_value(feat.minimum_value)
|
||||
|
Reference in New Issue
Block a user