From 54b504a1f2de4791a6183c19eea04d227c9320e8 Mon Sep 17 00:00:00 2001 From: Brice Arnould Date: Fri, 2 May 2025 21:22:27 +0200 Subject: [PATCH 1/2] Fix typo --- warema_wms/wms_controller.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/warema_wms/wms_controller.py b/warema_wms/wms_controller.py index 55c3235..dc804df 100644 --- a/warema_wms/wms_controller.py +++ b/warema_wms/wms_controller.py @@ -13,7 +13,7 @@ CMD_PREFIX = '90' RX_LANG = '023dff' RX_ROOM_NAME = '0203' -RX_CHANNAL_INFO = '0347' +RX_CHANEL_INFO = '0347' RX_CHECK_READY = '0323' RX_SHADE_STATE = '0431' @@ -84,7 +84,7 @@ def send_rx_room_name_command(self, room_id): return self._send_command(RX_ROOM_NAME, format(room_id, '02x')) def send_rx_channel_info(self, room_id, channel_id): - return self._send_command(RX_CHANNAL_INFO, format(room_id, '02x') + format(channel_id, '02x')) + return self._send_command(RX_CHANEL_INFO, format(room_id, '02x') + format(channel_id, '02x')) def send_rx_shade_state(self, room_id, channel_id): return self._send_command(RX_SHADE_STATE, format(room_id, '02x') + format(channel_id, '02x') + '01') From 4fc7171c78be9050c77feefec9df97e1a0e44bba Mon Sep 17 00:00:00 2001 From: Brice Arnould Date: Fri, 2 May 2025 21:28:43 +0200 Subject: [PATCH 2/2] Add NixOS dev shell --- shell.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 shell.nix diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..7ccf6db --- /dev/null +++ b/shell.nix @@ -0,0 +1,11 @@ +let + pkgs = import {}; +in pkgs.mkShell { + packages = [ + (pkgs.python3.withPackages (python-pkgs: [ + python-pkgs.ipython + python-pkgs.requests + ])) + ]; +} +