lifx-async 4.3.8__py3-none-any.whl → 4.3.9__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- lifx/network/connection.py +5 -6
- {lifx_async-4.3.8.dist-info → lifx_async-4.3.9.dist-info}/METADATA +1 -1
- {lifx_async-4.3.8.dist-info → lifx_async-4.3.9.dist-info}/RECORD +5 -5
- {lifx_async-4.3.8.dist-info → lifx_async-4.3.9.dist-info}/WHEEL +1 -1
- {lifx_async-4.3.8.dist-info → lifx_async-4.3.9.dist-info}/licenses/LICENSE +0 -0
lifx/network/connection.py
CHANGED
|
@@ -760,7 +760,7 @@ class DeviceConnection:
|
|
|
760
760
|
async def request_stream(
|
|
761
761
|
self,
|
|
762
762
|
packet: Any,
|
|
763
|
-
timeout: float =
|
|
763
|
+
timeout: float | None = None,
|
|
764
764
|
) -> AsyncGenerator[Any, None]:
|
|
765
765
|
"""Send request and yield unpacked responses.
|
|
766
766
|
|
|
@@ -823,6 +823,9 @@ class DeviceConnection:
|
|
|
823
823
|
# Ensure connection is open (lazy opening)
|
|
824
824
|
await self._ensure_open()
|
|
825
825
|
|
|
826
|
+
if timeout is None:
|
|
827
|
+
timeout = self.timeout
|
|
828
|
+
|
|
826
829
|
# Get packet metadata
|
|
827
830
|
packet_kind = getattr(packet, "_packet_kind", "OTHER")
|
|
828
831
|
|
|
@@ -942,11 +945,7 @@ class DeviceConnection:
|
|
|
942
945
|
f"Packet missing PKT_TYPE: {type(packet).__name__}"
|
|
943
946
|
)
|
|
944
947
|
|
|
945
|
-
async def request(
|
|
946
|
-
self,
|
|
947
|
-
packet: Any,
|
|
948
|
-
timeout: float = DEFAULT_REQUEST_TIMEOUT,
|
|
949
|
-
) -> Any:
|
|
948
|
+
async def request(self, packet: Any, timeout: float | None = None) -> Any:
|
|
950
949
|
"""Send request and get single response (convenience wrapper).
|
|
951
950
|
|
|
952
951
|
This is a convenience method that returns the first response from
|
|
@@ -20,7 +20,7 @@ lifx/effects/models.py,sha256=MS5D-cxD0Ar8XhqbqKAc9q2sk38IP1vPkYwd8V7jCr8,2446
|
|
|
20
20
|
lifx/effects/pulse.py,sha256=t5eyjfFWG1xT-RXKghRqHYJ9CG_50tPu4jsDapJZ2mw,8721
|
|
21
21
|
lifx/effects/state_manager.py,sha256=iDfYowiCN5IJqcR1s-pM0mQEJpe-RDsMcOOSMmtPVDE,8983
|
|
22
22
|
lifx/network/__init__.py,sha256=uSyA8r8qISG7qXUHbX8uk9A2E8rvDADgCcf94QIZ9so,499
|
|
23
|
-
lifx/network/connection.py,sha256=
|
|
23
|
+
lifx/network/connection.py,sha256=aerPiYWf096lq8oBiS7JfE4k-P18GS50mNEC4TYa2g8,38401
|
|
24
24
|
lifx/network/discovery.py,sha256=FoFoZcw3dtJs1daESiZiNXytanKQsMTdF9PjOxEgHM0,23804
|
|
25
25
|
lifx/network/message.py,sha256=jCLC9v0tbBi54g5CaHLFM_nP1Izu8kJmo2tt23HHBbA,2600
|
|
26
26
|
lifx/network/transport.py,sha256=8QS0YV32rdP0EDiPEwuvZXbplRWL08pmjKybd87mkZ0,11070
|
|
@@ -40,7 +40,7 @@ lifx/theme/canvas.py,sha256=4h7lgN8iu_OdchObGDgbxTqQLCb-FRKC-M-YCWef_i4,8048
|
|
|
40
40
|
lifx/theme/generators.py,sha256=L0X6_iApLx6XDboGlYunaVsl6nvUCqMfn23VQmRkyCk,6125
|
|
41
41
|
lifx/theme/library.py,sha256=tKlKZNqJp8lRGDnilWyDm_Qr1vCRGGwuvWVS82anNpQ,21326
|
|
42
42
|
lifx/theme/theme.py,sha256=qMEx_8E41C0Cc6f083XHiAXEglTv4YlXW0UFsG1rQKg,5521
|
|
43
|
-
lifx_async-4.3.
|
|
44
|
-
lifx_async-4.3.
|
|
45
|
-
lifx_async-4.3.
|
|
46
|
-
lifx_async-4.3.
|
|
43
|
+
lifx_async-4.3.9.dist-info/METADATA,sha256=MvH3VOBWH7ExbvDEZFteiTYdgd8RozuQU_c2aBLMtiE,2609
|
|
44
|
+
lifx_async-4.3.9.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
45
|
+
lifx_async-4.3.9.dist-info/licenses/LICENSE,sha256=eBz48GRA3gSiWn3rYZAz2Ewp35snnhV9cSqkVBq7g3k,1832
|
|
46
|
+
lifx_async-4.3.9.dist-info/RECORD,,
|
|
File without changes
|