aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Siarkowicz <mareksiarkowicz@gmail.com>2015-07-03 12:08:50 +0200
committerMarek Siarkowicz <mareksiarkowicz@gmail.com>2015-07-03 12:08:50 +0200
commitb7e96b1e6a73c84aa6e051d8c20d03e4d3a224b9 (patch)
tree02992908853e167fa49d273939957ab168020e4a
parentdeedbdca9564168460b24ee9549d084e2749fa1d (diff)
parent8236f6229e420406cfc64a55c8b358f7cb0357a5 (diff)
downloadpyParrotZikTCP-b7e96b1e6a73c84aa6e051d8c20d03e4d3a224b9.tar.xz
pyParrotZikTCP-b7e96b1e6a73c84aa6e051d8c20d03e4d3a224b9.zip
Merge pull request #1 from esanchezm/master
Fixed setter properties in version1 model
-rw-r--r--parrot_zik/model/version1.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/parrot_zik/model/version1.py b/parrot_zik/model/version1.py
index f0197e9..324cc9f 100644
--- a/parrot_zik/model/version1.py
+++ b/parrot_zik/model/version1.py
@@ -25,7 +25,7 @@ class ParrotZikVersion1(ParrotZikBase):
@lou_reed_mode.setter
def lou_reed_mode(self, arg):
- self.resource_manager.get("/api/audio/specific_mode/enabled", arg)
+ self.resource_manager.set("/api/audio/specific_mode/enabled", arg)
@property
def concert_hall(self):
@@ -35,7 +35,7 @@ class ParrotZikVersion1(ParrotZikBase):
@concert_hall.setter
def concert_hall(self, arg):
- self.resource_manager.get("/api/audio/sound_effect/enabled", arg)
+ self.resource_manager.set("/api/audio/sound_effect/enabled", arg)
@property
def cancel_noise(self):
@@ -45,4 +45,4 @@ class ParrotZikVersion1(ParrotZikBase):
@cancel_noise.setter
def cancel_noise(self, arg):
- self.resource_manager.set("/api/audio/noise_cancellation/enabled", arg) \ No newline at end of file
+ self.resource_manager.set("/api/audio/noise_cancellation/enabled", arg)