diff options
author | Marek Siarkowicz <mareksiarkowicz@gmail.com> | 2015-06-15 14:56:52 +0200 |
---|---|---|
committer | Marek Siarkowicz <mareksiarkowicz@gmail.com> | 2015-06-15 14:56:52 +0200 |
commit | 4573f9f3e95a0d79c576e3fe0f34023bbf6f0898 (patch) | |
tree | fc5f92391862fd08befb0d5488e1e9bb5ac5f652 /parrot_zik/model | |
parent | 3d06315f862150a978ba3c8a7a5a3b1672b6e89d (diff) | |
download | pyParrotZikTCP-4573f9f3e95a0d79c576e3fe0f34023bbf6f0898.tar.xz pyParrotZikTCP-4573f9f3e95a0d79c576e3fe0f34023bbf6f0898.zip |
Implement head detection setting.
Diffstat (limited to '')
-rw-r--r-- | parrot_zik/model/version2.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/parrot_zik/model/version2.py b/parrot_zik/model/version2.py index 9ef6267..e0bce44 100644 --- a/parrot_zik/model/version2.py +++ b/parrot_zik/model/version2.py @@ -80,6 +80,15 @@ class ParrotZikVersion2(ParrotZikBase): answer = self.resource_manager.get('/api/audio/noise_control/enabled') return self._result_to_bool(answer.audio.noise_control['enabled']) + @property + def head_detection(self): + answer = self.resource_manager.get('/api/system/head_detection/enabled') + return self._result_to_bool(answer.system.head_detection['enabled']) + + @head_detection.setter + def head_detection(self, arg): + self.resource_manager.set('/api/system/head_detection/enabled', arg) + class NoiseControl(object): def __init__(self, type, value): |