Skip to content

Commit

Permalink
Merge pull request #72 from home-assistant-libs/integrate-python-cont…
Browse files Browse the repository at this point in the history
…roller-cleanups
  • Loading branch information
balloob authored Jun 7, 2024
2 parents 72ad04c + 94d1ad8 commit d8fd88a
Show file tree
Hide file tree
Showing 19 changed files with 5,659 additions and 40 deletions.
9 changes: 4 additions & 5 deletions 0001-Support-custom-platform-tag.patch
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
From d06671d9031156ce3b29e06d7edb344d8f6ee0d6 Mon Sep 17 00:00:00 2001
Message-ID: <d06671d9031156ce3b29e06d7edb344d8f6ee0d6.1698087175.git.stefan@agner.ch>
From bcd84a21c67a681fcaba43118d9d9bb7ed618b55 Mon Sep 17 00:00:00 2001
From: Stefan Agner <stefan@agner.ch>
Date: Tue, 22 Nov 2022 10:51:17 +0100
Subject: [PATCH] Support custom platform tag
Expand All @@ -9,7 +8,7 @@ Subject: [PATCH] Support custom platform tag
1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/src/controller/python/BUILD.gn b/src/controller/python/BUILD.gn
index 4b84c63d5f..b01dafbc30 100644
index 5fc2212098..caa33c3a40 100644
--- a/src/controller/python/BUILD.gn
+++ b/src/controller/python/BUILD.gn
@@ -35,6 +35,15 @@ declare_args() {
Expand All @@ -28,7 +27,7 @@ index 4b84c63d5f..b01dafbc30 100644
}

shared_library("ChipDeviceCtrl") {
@@ -340,16 +349,7 @@ chip_python_wheel_action("chip-core") {
@@ -344,16 +353,7 @@ chip_python_wheel_action("chip-core") {
cpu_tag = current_cpu
}

Expand All @@ -47,5 +46,5 @@ index 4b84c63d5f..b01dafbc30 100644
tags = "cp37-abi3-" + py_platform_tag

--
2.42.0
2.45.2

9 changes: 3 additions & 6 deletions 0002-Use-data-as-platform-storage-location.patch
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
From 88ba0f8233f97a9bb773341da7c996deee9675fe Mon Sep 17 00:00:00 2001
Message-ID: <88ba0f8233f97a9bb773341da7c996deee9675fe.1698087175.git.stefan@agner.ch>
In-Reply-To: <d06671d9031156ce3b29e06d7edb344d8f6ee0d6.1698087175.git.stefan@agner.ch>
References: <d06671d9031156ce3b29e06d7edb344d8f6ee0d6.1698087175.git.stefan@agner.ch>
From 5c1316070604e8e7ade9b518ad717c63276dd06a Mon Sep 17 00:00:00 2001
From: Stefan Agner <stefan@agner.ch>
Date: Fri, 27 May 2022 16:38:14 +0200
Subject: [PATCH] Use /data as platform storage location
Expand All @@ -11,7 +8,7 @@ Subject: [PATCH] Use /data as platform storage location
1 file changed, 6 insertions(+)

diff --git a/src/platform/Linux/BUILD.gn b/src/platform/Linux/BUILD.gn
index a2cfa6b39c..f6fd74ab0c 100644
index d73a2dcb0f..97c397994e 100644
--- a/src/platform/Linux/BUILD.gn
+++ b/src/platform/Linux/BUILD.gn
@@ -38,6 +38,12 @@ if (chip_mdns == "platform") {
Expand All @@ -28,5 +25,5 @@ index a2cfa6b39c..f6fd74ab0c 100644
"../DeviceSafeQueue.cpp",
"../DeviceSafeQueue.h",
--
2.42.0
2.45.2

4 changes: 2 additions & 2 deletions 0003-Linux-Increase-number-of-endpoints.patch
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
From 47ca82473af8d77eb89732884542c719ccdd9312 Mon Sep 17 00:00:00 2001
From 3bcfcd1d91050868d0153bf7692db3ac844ccc94 Mon Sep 17 00:00:00 2001
From: Stefan Agner <stefan@agner.ch>
Date: Thu, 29 Feb 2024 19:07:15 +0100
Subject: [PATCH] Linux: Increase number of endpoints
Expand Down Expand Up @@ -36,5 +36,5 @@ index 3aab9a7b9b..02e664eddc 100644

// On linux platform, we have sys/socket.h, so HAVE_SO_BINDTODEVICE should be set to 1
--
2.44.0
2.45.2

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From f9fc067ad51d3989a2045f19fc5641971ce1ee20 Mon Sep 17 00:00:00 2001
From 7ce75765081aeebef5f3adc397dff4db256348eb Mon Sep 17 00:00:00 2001
From: Stefan Agner <stefan@agner.ch>
Date: Wed, 27 Mar 2024 22:13:19 +0100
Subject: [PATCH] [Python] Implement async friendly GetConnectedDevice
Subject: [PATCH] Implement async friendly GetConnectedDevice

Currently GetConnectedDeviceSync() is blocking e.g. when a new session
needs to be created. This is not asyncio friendly as it blocks the
Expand Down Expand Up @@ -129,5 +129,5 @@ index 369260787d..b3d0aa2d7f 100644
v) for v in attributes] if attributes else None
clusterDataVersionFilters = [self._parseDataVersionFilterTuple(
--
2.44.0
2.45.2

4 changes: 2 additions & 2 deletions 0005-Enable-node-ID-logging-in-exchanges.patch
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
From 3c551b7a706428d2fde77df0bc93d81bb37a2022 Mon Sep 17 00:00:00 2001
From c1536db9448763f2e45b3aeef34f30cbfb41889e Mon Sep 17 00:00:00 2001
From: Stefan Agner <stefan@agner.ch>
Date: Thu, 18 Apr 2024 21:46:59 +0200
Subject: [PATCH] Enable node ID logging in exchanges
Expand All @@ -22,5 +22,5 @@ index 558e0ee08e..5a3f5facb7 100644

/**
--
2.44.0
2.45.2

Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
From dce7020f3a9e542e6afbc59f131c77210df5f7db Mon Sep 17 00:00:00 2001
Message-ID: <dce7020f3a9e542e6afbc59f131c77210df5f7db.1714067071.git.stefan@agner.ch>
From 113143a945bbe5663b78b59b05d6b00670d79292 Mon Sep 17 00:00:00 2001
From: Stefan Agner <stefan@agner.ch>
Date: Thu, 25 Apr 2024 15:19:17 +0200
Subject: [PATCH] [Python] Fix OnRead[Event|Attribute]DataCallback for Arm64
Apple Patform devices
Subject: [PATCH] Fix OnRead[Event|Attribute]DataCallback for Arm64 Apple
Patform devices

On M1/Arm64 macOS systems, the OnReadEventDataCallback often returned
an invalid status, e.g.:
Expand Down Expand Up @@ -50,5 +49,5 @@ index e31f3431b8..b73b4a49b4 100644
// When the apData is nullptr, means we did not receive a valid event data from server, status will be some error
// status.
--
2.44.0
2.45.2

Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
From 9bc05af1e1ef2ec93336dc0eecba16b6802b6fb1 Mon Sep 17 00:00:00 2001
Message-ID: <9bc05af1e1ef2ec93336dc0eecba16b6802b6fb1.1716466458.git.stefan@agner.ch>
From 4fe4daf7f165dc007ab6092bee2adef67650d129 Mon Sep 17 00:00:00 2001
From: Stefan Agner <stefan@agner.ch>
Date: Thu, 23 May 2024 12:48:54 +0200
Subject: [PATCH] [Python] Add raw attribute callback
Subject: [PATCH] Add raw attribute callback

Add new subscription callback which uses raw AttributePath as paths
of changed attributes. This allows to subscribe to custom clusters,
Expand Down Expand Up @@ -102,5 +101,5 @@ index 9e46eed469..ce522bf452 100644
# Clear it out once we've notified of all changes in this transaction.
self._changedPathSet = set()
--
2.45.1
2.45.2

Loading

0 comments on commit d8fd88a

Please sign in to comment.