Skip to content

Commit b1a5755

Browse files
committed
Fix params for sendDoorCommand
1 parent 94819f9 commit b1a5755

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [UNRELEASED](https://github.com/hahn-th/homematicip-rest-api/compare/2.2.0..master)
99

10+
### Fixed
11+
12+
- Fix params for sendDoorCommand
13+
1014
## [2.2.0](https://github.com/hahn-th/homematicip-rest-api/compare/2.1.0..2.2.0) 2025-07-18
1115

1216
### Added

src/homematicip/base/functionalChannels.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ def send_door_command(self, doorCommand=DoorCommand.STOP):
563563

564564
async def async_send_door_command(self, doorCommand=DoorCommand.STOP):
565565
return await functional_channel_commands.send_door_command_async(
566-
self._connection, self.device.id, self.index, doorCommand
566+
self._connection, self.device.id, self.index, str(doorCommand)
567567
)
568568

569569

src/homematicip/device.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2459,10 +2459,12 @@ def from_json(self, js):
24592459
self.set_attr_from_dict("ventilationPositionSupported", c)
24602460

24612461
def send_door_command(self, doorCommand=DoorCommand.STOP):
2462+
logging.warning("function is deprecated, use send_door_command_async instead")
24622463
return self._run_non_async(lambda: self.send_door_command_async(doorCommand))
24632464

24642465
async def send_door_command_async(self, doorCommand=DoorCommand.STOP):
2465-
data = {"channelIndex": 1, "deviceId": self.id, "doorCommand": doorCommand}
2466+
logging.warning("function is deprecated, use send_door_command_async instead")
2467+
data = {"channelIndex": 1, "deviceId": self.id, "doorCommand": str(doorCommand)}
24662468
return await self._rest_call_async("device/control/sendDoorCommand", data)
24672469

24682470

0 commit comments

Comments
 (0)