Skip to content

Commit

Permalink
Merge pull request #285 from SukramJ/SG-MethodSignature
Browse files Browse the repository at this point in the history
Align method signature of shutter group with shutter
  • Loading branch information
coreGreenberet authored Jan 12, 2020
2 parents 026bb7b + 65b876e commit 0eceb86
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions homematicip/aio/group.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ async def set_shutter_stop(self):
url, data = super().set_shutter_stop()
return await self._connection.api_call(url, data)

async def set_slats_level(self, slatsLevel, shutterlevel):
url, data = super().set_slats_level(slatsLevel, shutterlevel)
async def set_slats_level(self, slatsLevel=0.0, shutterLevel=None):
url, data = super().set_slats_level(slatsLevel, shutterLevel)
return await self._connection.api_call(url, data)


Expand Down
4 changes: 2 additions & 2 deletions homematicip/group.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,10 +340,10 @@ def set_shutter_level(self, level):
data = {"groupId": self.id, "shutterLevel": level}
return self._restCall("group/switching/setShutterLevel", body=json.dumps(data))

def set_slats_level(self, slatsLevel, shutterlevel):
def set_slats_level(self, slatsLevel=0.0, shutterLevel=None):
data = {
"groupId": self.id,
"shutterLevel": shutterlevel,
"shutterLevel": shutterLevel,
"slatsLevel": slatsLevel,
}
return self._restCall("group/switching/setSlatsLevel", body=json.dumps(data))
Expand Down

0 comments on commit 0eceb86

Please sign in to comment.