python-broadlink 1.0.3__py3-none-any.whl → 1.0.4__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.
- broadlink/__init__.py +6 -6
- broadlink/device.py +88 -14
- broadlink/remote.py +10 -9
- broadlink/sensor.py +27 -27
- {python_broadlink-1.0.3.dist-info → python_broadlink-1.0.4.dist-info}/METADATA +17 -5
- {python_broadlink-1.0.3.dist-info → python_broadlink-1.0.4.dist-info}/RECORD +9 -9
- {python_broadlink-1.0.3.dist-info → python_broadlink-1.0.4.dist-info}/WHEEL +0 -0
- {python_broadlink-1.0.3.dist-info → python_broadlink-1.0.4.dist-info}/licenses/LICENSE +0 -0
- {python_broadlink-1.0.3.dist-info → python_broadlink-1.0.4.dist-info}/top_level.txt +0 -0
broadlink/__init__.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"""The python-broadlink library."""
|
|
2
2
|
|
|
3
3
|
import contextlib
|
|
4
|
-
from collections.abc import
|
|
4
|
+
from collections.abc import AsyncGenerator
|
|
5
5
|
|
|
6
6
|
from . import exceptions as e
|
|
7
7
|
from .alarm import S1C
|
|
@@ -294,15 +294,15 @@ async def xdiscover(
|
|
|
294
294
|
local_ip_address: str | None = None,
|
|
295
295
|
discover_ip_address: str = DEFAULT_BCAST_ADDR,
|
|
296
296
|
discover_ip_port: int = DEFAULT_PORT,
|
|
297
|
-
) ->
|
|
297
|
+
) -> AsyncGenerator[Device]:
|
|
298
298
|
"""Discover devices connected to the local network.
|
|
299
299
|
|
|
300
300
|
Yields each device as soon as it answers.
|
|
301
301
|
"""
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
302
|
+
responses = scan(timeout, local_ip_address, discover_ip_address, discover_ip_port)
|
|
303
|
+
async with contextlib.aclosing(responses):
|
|
304
|
+
async for resp in responses:
|
|
305
|
+
yield gendevice(*resp)
|
|
306
306
|
|
|
307
307
|
|
|
308
308
|
# Setup a new Broadlink device via AP Mode. Review the README to see how to enter AP Mode.
|
broadlink/device.py
CHANGED
|
@@ -15,7 +15,7 @@ import contextlib
|
|
|
15
15
|
import logging
|
|
16
16
|
import random
|
|
17
17
|
import socket
|
|
18
|
-
from collections.abc import
|
|
18
|
+
from collections.abc import AsyncGenerator
|
|
19
19
|
|
|
20
20
|
from cryptography.hazmat.backends import default_backend
|
|
21
21
|
from cryptography.hazmat.primitives.ciphers import Cipher, algorithms, modes
|
|
@@ -48,12 +48,20 @@ _RECENT_MAX = 64
|
|
|
48
48
|
_CLOSED = (None, None)
|
|
49
49
|
"""Sentinel put on the receive queue when the endpoint is closed."""
|
|
50
50
|
|
|
51
|
+
_QueueItem = tuple[bytes | Exception | None, tuple[str, int] | None]
|
|
52
|
+
"""What the receive queue carries: a datagram with its source address, an
|
|
53
|
+
error the socket reported (address ``None``), or ``_CLOSED``."""
|
|
54
|
+
|
|
51
55
|
|
|
52
56
|
class _Protocol(asyncio.DatagramProtocol):
|
|
53
|
-
"""Datagram protocol that hands every received packet to a queue.
|
|
57
|
+
"""Datagram protocol that hands every received packet to a queue.
|
|
58
|
+
|
|
59
|
+
Errors the socket reports go on the same queue, so the request that is
|
|
60
|
+
waiting fails at once instead of waiting out its timeout.
|
|
61
|
+
"""
|
|
54
62
|
|
|
55
63
|
def __init__(self) -> None:
|
|
56
|
-
self.queue: asyncio.Queue[
|
|
64
|
+
self.queue: asyncio.Queue[_QueueItem] = asyncio.Queue()
|
|
57
65
|
self.transport: asyncio.DatagramTransport | None = None
|
|
58
66
|
|
|
59
67
|
def connection_made(self, transport: asyncio.BaseTransport) -> None:
|
|
@@ -65,18 +73,30 @@ class _Protocol(asyncio.DatagramProtocol):
|
|
|
65
73
|
self.queue.put_nowait((data, addr))
|
|
66
74
|
|
|
67
75
|
def error_received(self, exc: Exception) -> None:
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
pass
|
|
76
|
+
"""Queue a send failure or an ICMP error for the waiting request."""
|
|
77
|
+
self.queue.put_nowait((exc, None))
|
|
71
78
|
|
|
72
79
|
def connection_lost(self, exc: Exception | None) -> None:
|
|
73
|
-
"""
|
|
80
|
+
"""Wake the waiting request if asyncio closed the transport on us."""
|
|
81
|
+
self.queue.put_nowait((exc, None) if exc is not None else _CLOSED)
|
|
74
82
|
|
|
75
83
|
def drain(self) -> None:
|
|
76
84
|
"""Drop anything that arrived before the current request."""
|
|
77
85
|
while not self.queue.empty():
|
|
78
86
|
self.queue.get_nowait()
|
|
79
87
|
|
|
88
|
+
def raise_if_error(self) -> None:
|
|
89
|
+
"""Raise the error a send just reported, if it reported one.
|
|
90
|
+
|
|
91
|
+
asyncio delivers a failed ``sendto`` to ``error_received`` before
|
|
92
|
+
``sendto`` returns, so a fire-and-forget sender can check right
|
|
93
|
+
after sending and raise the ``OSError`` the way a plain socket did.
|
|
94
|
+
"""
|
|
95
|
+
while not self.queue.empty():
|
|
96
|
+
item, _ = self.queue.get_nowait()
|
|
97
|
+
if isinstance(item, Exception):
|
|
98
|
+
raise item
|
|
99
|
+
|
|
80
100
|
|
|
81
101
|
async def _open_endpoint(
|
|
82
102
|
local_addr: tuple[str, int] | None = None,
|
|
@@ -95,6 +115,21 @@ async def _open_endpoint(
|
|
|
95
115
|
return transport, protocol # type: ignore[return-value]
|
|
96
116
|
|
|
97
117
|
|
|
118
|
+
async def _resolve(host: str, port: int) -> tuple[str, int]:
|
|
119
|
+
"""Resolve a destination once, off the event loop.
|
|
120
|
+
|
|
121
|
+
Sending to a hostname through an unconnected datagram socket would
|
|
122
|
+
resolve it with a blocking call on the loop and hide the failure. A
|
|
123
|
+
name that does not resolve raises ``socket.gaierror`` here, as the
|
|
124
|
+
original library's ``sendto`` did.
|
|
125
|
+
"""
|
|
126
|
+
loop = asyncio.get_running_loop()
|
|
127
|
+
info = await loop.getaddrinfo(
|
|
128
|
+
host, port, family=socket.AF_INET, type=socket.SOCK_DGRAM
|
|
129
|
+
)
|
|
130
|
+
return info[0][4][:2] # type: ignore[return-value]
|
|
131
|
+
|
|
132
|
+
|
|
98
133
|
def _hello_packet(local_ip_address: str, port: int) -> bytearray:
|
|
99
134
|
packet = bytearray(0x30)
|
|
100
135
|
packet[0x08:0x14] = Datetime.pack(Datetime.now())
|
|
@@ -119,13 +154,14 @@ async def scan(
|
|
|
119
154
|
local_ip_address: str | None = None,
|
|
120
155
|
discover_ip_address: str = DEFAULT_BCAST_ADDR,
|
|
121
156
|
discover_ip_port: int = DEFAULT_PORT,
|
|
122
|
-
) ->
|
|
157
|
+
) -> AsyncGenerator[HelloResponse]:
|
|
123
158
|
"""Broadcast a hello message and yield responses as they arrive.
|
|
124
159
|
|
|
125
160
|
The hello is repeated every ``DEFAULT_RETRY_INTVL`` seconds until
|
|
126
161
|
``timeout`` elapses. Each device is yielded once.
|
|
127
162
|
"""
|
|
128
163
|
local_addr = (local_ip_address, 0) if local_ip_address else None
|
|
164
|
+
target = await _resolve(discover_ip_address, discover_ip_port)
|
|
129
165
|
transport, protocol = await _open_endpoint(local_addr=local_addr, broadcast=True)
|
|
130
166
|
try:
|
|
131
167
|
if local_ip_address:
|
|
@@ -140,7 +176,7 @@ async def scan(
|
|
|
140
176
|
discovered: set[tuple[tuple[str, int], bytes, int]] = set()
|
|
141
177
|
|
|
142
178
|
while (loop.time() - start) < timeout:
|
|
143
|
-
transport.sendto(packet,
|
|
179
|
+
transport.sendto(packet, target)
|
|
144
180
|
deadline = min(DEFAULT_RETRY_INTVL, timeout - (loop.time() - start))
|
|
145
181
|
slot_end = loop.time() + deadline
|
|
146
182
|
while True:
|
|
@@ -151,7 +187,11 @@ async def scan(
|
|
|
151
187
|
resp, host = await asyncio.wait_for(protocol.queue.get(), remaining)
|
|
152
188
|
except TimeoutError:
|
|
153
189
|
break
|
|
154
|
-
if
|
|
190
|
+
if resp is None:
|
|
191
|
+
return # The transport was closed under us.
|
|
192
|
+
if isinstance(resp, Exception):
|
|
193
|
+
raise resp
|
|
194
|
+
if host is None or len(resp) < 0x80:
|
|
155
195
|
continue
|
|
156
196
|
entry = _parse_hello(resp, host)
|
|
157
197
|
key = (entry[1], entry[2], entry[0])
|
|
@@ -167,9 +207,11 @@ async def send_setup_packet(
|
|
|
167
207
|
payload: bytes, ip_address: str, port: int = DEFAULT_PORT
|
|
168
208
|
) -> None:
|
|
169
209
|
"""Broadcast one Wi-Fi provisioning packet to a device in AP mode."""
|
|
170
|
-
|
|
210
|
+
target = await _resolve(ip_address, port)
|
|
211
|
+
transport, protocol = await _open_endpoint(broadcast=True)
|
|
171
212
|
try:
|
|
172
|
-
transport.sendto(payload,
|
|
213
|
+
transport.sendto(payload, target)
|
|
214
|
+
protocol.raise_if_error()
|
|
173
215
|
finally:
|
|
174
216
|
transport.close()
|
|
175
217
|
|
|
@@ -181,11 +223,13 @@ async def ping(ip_address: str, port: int = DEFAULT_PORT) -> None:
|
|
|
181
223
|
Useful to prevent reboots when the cloud cannot be reached.
|
|
182
224
|
It must be sent every 2 minutes in such cases.
|
|
183
225
|
"""
|
|
184
|
-
|
|
226
|
+
target = await _resolve(ip_address, port)
|
|
227
|
+
transport, protocol = await _open_endpoint(broadcast=True)
|
|
185
228
|
try:
|
|
186
229
|
packet = bytearray(0x30)
|
|
187
230
|
packet[0x26] = 1
|
|
188
|
-
transport.sendto(packet,
|
|
231
|
+
transport.sendto(packet, target)
|
|
232
|
+
protocol.raise_if_error()
|
|
189
233
|
finally:
|
|
190
234
|
transport.close()
|
|
191
235
|
|
|
@@ -407,6 +451,22 @@ class Device:
|
|
|
407
451
|
if protocol is not None:
|
|
408
452
|
protocol.queue.put_nowait(_CLOSED) # type: ignore[arg-type]
|
|
409
453
|
|
|
454
|
+
def _drop_endpoint(self) -> None:
|
|
455
|
+
"""Throw the endpoint away after a failure; the next call reopens it.
|
|
456
|
+
|
|
457
|
+
A connected datagram socket can go bad for good (the interface
|
|
458
|
+
bounced, the host's address changed), and the original library
|
|
459
|
+
never noticed because it opened a socket per call. Dropping the
|
|
460
|
+
endpoint whenever a request fails restores that self-healing.
|
|
461
|
+
"""
|
|
462
|
+
transport = self._transport
|
|
463
|
+
self._transport = None
|
|
464
|
+
self._protocol = None
|
|
465
|
+
self._endpoint_addr = None
|
|
466
|
+
if transport is not None:
|
|
467
|
+
transport.close()
|
|
468
|
+
_LOGGER.debug("%s: endpoint dropped after a failure", self.host[0])
|
|
469
|
+
|
|
410
470
|
async def _endpoint(self) -> tuple[asyncio.DatagramTransport, _Protocol]:
|
|
411
471
|
if self._transport is not None and self._endpoint_addr != self.host:
|
|
412
472
|
# The caller changed host; the connected socket points at the
|
|
@@ -510,6 +570,19 @@ class Device:
|
|
|
510
570
|
raise e.EndpointClosedError(
|
|
511
571
|
-4013, "Endpoint closed", "The device endpoint was closed"
|
|
512
572
|
)
|
|
573
|
+
if isinstance(resp, ConnectionRefusedError):
|
|
574
|
+
# ICMP port unreachable: the host is up and nothing is
|
|
575
|
+
# listening, or the device is rebooting. The original
|
|
576
|
+
# library's unconnected socket never saw these, so keep
|
|
577
|
+
# waiting and let the timeout decide, as it did.
|
|
578
|
+
_LOGGER.debug("%s: port unreachable, still waiting", self.host[0])
|
|
579
|
+
continue
|
|
580
|
+
if isinstance(resp, Exception):
|
|
581
|
+
# A send failure (no route, address gone) or a fatal
|
|
582
|
+
# transport error: fail now and throw the socket away.
|
|
583
|
+
_LOGGER.debug("%s: socket error: %s", self.host[0], resp)
|
|
584
|
+
self._drop_endpoint()
|
|
585
|
+
raise resp
|
|
513
586
|
resp = self._validate(resp)
|
|
514
587
|
reply_count = int.from_bytes(resp[0x28:0x2A], "little")
|
|
515
588
|
if reply_count == count or reply_count not in self._recent:
|
|
@@ -521,6 +594,7 @@ class Device:
|
|
|
521
594
|
)
|
|
522
595
|
if loop.time() - start >= timeout:
|
|
523
596
|
_LOGGER.debug("%s: no reply within %ss", self.host[0], timeout)
|
|
597
|
+
self._drop_endpoint()
|
|
524
598
|
raise e.NetworkTimeoutError(
|
|
525
599
|
-4000,
|
|
526
600
|
"Network timeout",
|
broadlink/remote.py
CHANGED
|
@@ -6,7 +6,7 @@ import logging
|
|
|
6
6
|
import struct
|
|
7
7
|
import time
|
|
8
8
|
import weakref
|
|
9
|
-
from collections.abc import
|
|
9
|
+
from collections.abc import AsyncGenerator, Awaitable, Callable
|
|
10
10
|
from dataclasses import dataclass, field
|
|
11
11
|
from typing import Self
|
|
12
12
|
|
|
@@ -18,9 +18,10 @@ _LOGGER = logging.getLogger(__name__)
|
|
|
18
18
|
TICK = 8192 / 269
|
|
19
19
|
"""Duration of one Broadlink timing unit in microseconds (about 30.45 us).
|
|
20
20
|
|
|
21
|
-
The
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
The value comes from protocol.md, whose conversion "us * 269 / 8192 works
|
|
22
|
+
very well" was measured against real firmware; 8192/269 is its inverse.
|
|
23
|
+
Earlier releases used 32.84, the right ratio applied the wrong way round,
|
|
24
|
+
which compressed externally sourced IR codes by about 7 percent
|
|
24
25
|
(mjg59/python-broadlink#839). Codes learned and replayed through the same
|
|
25
26
|
device were unaffected because both directions shared the constant.
|
|
26
27
|
"""
|
|
@@ -176,7 +177,7 @@ class CapturedSignal:
|
|
|
176
177
|
repeat: int = 0
|
|
177
178
|
frequency_mhz: float | None = None
|
|
178
179
|
type_byte: int | None = None
|
|
179
|
-
captured_at: float = field(default_factory=time.time, repr=False)
|
|
180
|
+
captured_at: float = field(default_factory=time.time, repr=False, compare=False)
|
|
180
181
|
|
|
181
182
|
@classmethod
|
|
182
183
|
def from_packet(
|
|
@@ -300,7 +301,7 @@ class rmmini(Device):
|
|
|
300
301
|
stop_after_first: bool = True,
|
|
301
302
|
poll_interval: float = DEFAULT_POLL_INTERVAL,
|
|
302
303
|
rearm_interval: float = DEFAULT_REARM_INTERVAL,
|
|
303
|
-
) ->
|
|
304
|
+
) -> AsyncGenerator[CapturedSignal]:
|
|
304
305
|
"""Open an infrared capture window and yield what the device hears.
|
|
305
306
|
|
|
306
307
|
The device is put into learning mode and polled every
|
|
@@ -348,7 +349,7 @@ class rmmini(Device):
|
|
|
348
349
|
frequency_mhz: float | None,
|
|
349
350
|
*,
|
|
350
351
|
claim: list | None = None,
|
|
351
|
-
) ->
|
|
352
|
+
) -> AsyncGenerator[CapturedSignal]:
|
|
352
353
|
# ``claim`` carries a weak reference to this generator (filled in by
|
|
353
354
|
# the caller after creating it); None means the caller owns the
|
|
354
355
|
# window claim, as capture_rf does for its inner loop.
|
|
@@ -457,7 +458,7 @@ class rmpro(rmmini):
|
|
|
457
458
|
stop_after_first: bool = True,
|
|
458
459
|
poll_interval: float = DEFAULT_POLL_INTERVAL,
|
|
459
460
|
rearm_interval: float = DEFAULT_REARM_INTERVAL,
|
|
460
|
-
) ->
|
|
461
|
+
) -> AsyncGenerator[CapturedSignal]:
|
|
461
462
|
"""Open a radio frequency capture window and yield what the device hears.
|
|
462
463
|
|
|
463
464
|
With ``frequency`` (in MHz, for example 433.92) the device goes
|
|
@@ -496,7 +497,7 @@ class rmpro(rmmini):
|
|
|
496
497
|
rearm_interval: float,
|
|
497
498
|
*,
|
|
498
499
|
claim: list,
|
|
499
|
-
) ->
|
|
500
|
+
) -> AsyncGenerator[CapturedSignal]:
|
|
500
501
|
if window < 0 or poll_interval <= 0:
|
|
501
502
|
raise ValueError("window must be 0 or positive, poll_interval positive")
|
|
502
503
|
await self._claim_window(claim[0])
|
broadlink/sensor.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"""Support for sensors."""
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
import struct
|
|
4
4
|
|
|
5
5
|
from . import exceptions as e
|
|
6
6
|
from .device import Device
|
|
@@ -48,35 +48,35 @@ class a2(Device):
|
|
|
48
48
|
|
|
49
49
|
TYPE = "A2"
|
|
50
50
|
|
|
51
|
-
async def _send(self, operation: int, data:
|
|
52
|
-
"""Send a command to the device.
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
packet
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
packet
|
|
74
|
-
packet[
|
|
51
|
+
async def _send(self, operation: int, data: bytes = b"") -> bytes:
|
|
52
|
+
"""Send a command to the device.
|
|
53
|
+
|
|
54
|
+
The frame is the one the SP4 and LB1 families use: a two-byte
|
|
55
|
+
length, the A5A5 5A5A marker, a checksum, the operation, 0x0B and
|
|
56
|
+
a four-byte data length. The 0.19.0 code wrote a two-byte data
|
|
57
|
+
length and a length field two short, and real A2 units answered
|
|
58
|
+
every request with error -5 (mjg59/python-broadlink#826).
|
|
59
|
+
"""
|
|
60
|
+
packet = bytearray(14)
|
|
61
|
+
struct.pack_into(
|
|
62
|
+
"<HHHHBBI",
|
|
63
|
+
packet,
|
|
64
|
+
0,
|
|
65
|
+
12 + len(data),
|
|
66
|
+
0xA5A5,
|
|
67
|
+
0x5A5A,
|
|
68
|
+
0,
|
|
69
|
+
operation,
|
|
70
|
+
0x0B,
|
|
71
|
+
len(data),
|
|
72
|
+
)
|
|
73
|
+
packet.extend(data)
|
|
74
|
+
checksum = sum(packet[0x02:], 0xBEAF) & 0xFFFF
|
|
75
|
+
packet[0x06:0x08] = checksum.to_bytes(2, "little")
|
|
75
76
|
|
|
76
77
|
resp = await self.send_packet(0x6A, packet)
|
|
77
78
|
e.check_error(resp[0x22:0x24])
|
|
78
|
-
|
|
79
|
-
return payload
|
|
79
|
+
return self.decrypt(resp[0x38:])
|
|
80
80
|
|
|
81
81
|
async def check_sensors_raw(self) -> dict:
|
|
82
82
|
"""Return the state of the sensors in raw format."""
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python-broadlink
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.4
|
|
4
4
|
Summary: Python API for controlling Broadlink devices
|
|
5
5
|
Author: DAB-LABS
|
|
6
6
|
Author-email: Matthew Garrett <mjg59@srcf.ucam.org>
|
|
@@ -193,6 +193,11 @@ If the device is locked, it may not be discoverable with broadcast. In such case
|
|
|
193
193
|
device = await broadlink.hello("192.168.0.16")
|
|
194
194
|
```
|
|
195
195
|
|
|
196
|
+
`discover()` and `hello()` raise `NetworkTimeoutError` when nothing answers
|
|
197
|
+
within the timeout, `socket.gaierror` when a hostname does not resolve, and
|
|
198
|
+
`OSError` when the socket cannot be opened or the send fails (no route, for
|
|
199
|
+
example), the same errors the original library raised from its socket.
|
|
200
|
+
|
|
196
201
|
If you are a perfomance freak, use `broadlink.xdiscover()` to create devices instantly:
|
|
197
202
|
```python3
|
|
198
203
|
async for device in broadlink.xdiscover():
|
|
@@ -233,9 +238,14 @@ await device.aclose()
|
|
|
233
238
|
|
|
234
239
|
The socket reopens by itself on the next call, so closing is cheap and
|
|
235
240
|
safe to do at any time. A request that is in flight when `aclose()` runs
|
|
236
|
-
fails with `EndpointClosedError`.
|
|
237
|
-
|
|
238
|
-
|
|
241
|
+
fails with `EndpointClosedError`. A request that fails for a network
|
|
242
|
+
reason (a timeout, or an `OSError` from the socket such as "network is
|
|
243
|
+
unreachable" after an interface change, raised at once) also drops the socket, so the
|
|
244
|
+
next call starts fresh rather than reusing one that has gone bad, which
|
|
245
|
+
is how the original library behaved by opening a socket per call. An
|
|
246
|
+
integration that creates devices should close them when it unloads; a
|
|
247
|
+
device that is never closed holds its socket until it is garbage
|
|
248
|
+
collected.
|
|
239
249
|
|
|
240
250
|
The next steps depend on the type of device you want to control.
|
|
241
251
|
|
|
@@ -311,7 +321,9 @@ By default the window closes after the first signal. Pass
|
|
|
311
321
|
because the device holds only one code per learning session. A universal
|
|
312
322
|
remote has a single receiver, so only one capture window can be open on a
|
|
313
323
|
device at a time: opening a second one raises `CaptureInProgressError`
|
|
314
|
-
while the first is still held
|
|
324
|
+
while the first is still held, either from the `capture()` call itself or
|
|
325
|
+
from the new window's first iteration, depending on what the first window
|
|
326
|
+
was doing at that moment. Always close a window you leave early
|
|
315
327
|
(`aclosing` above does it), otherwise it stays open until Python collects
|
|
316
328
|
the generator.
|
|
317
329
|
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
broadlink/__init__.py,sha256=
|
|
1
|
+
broadlink/__init__.py,sha256=CYuVoYuKsXTd69yx7X9lIYr3DEPFlUL88bE4rcZMqb4,10890
|
|
2
2
|
broadlink/alarm.py,sha256=tmeNI-AaPna5nbgoTqz_AGmuQVItGTmt7zyNiRLsSlQ,1260
|
|
3
3
|
broadlink/climate.py,sha256=fciXwQ0P2_kOaJiXAprfXuDyhLdHU--mE6pCYkVWdF8,15592
|
|
4
4
|
broadlink/const.py,sha256=Y0XSxYr1k27FKqHWBirJsUB0HGxQ1riIZ9rfVEJaIL4,120
|
|
5
5
|
broadlink/cover.py,sha256=-wW1BPmf5Z8oeLuqDVEpUyU-PgId5CJ91M3g3RjgVAU,5448
|
|
6
|
-
broadlink/device.py,sha256
|
|
6
|
+
broadlink/device.py,sha256=-aAZfV_CSWqIeFowewQo5Dn3vvp2YclZ4E19qOc_hVQ,24883
|
|
7
7
|
broadlink/exceptions.py,sha256=S8xOGdzyFGd6ULXUlblDwE-MADoJIR49itEo0j_fZNU,5226
|
|
8
8
|
broadlink/helpers.py,sha256=Zbw7lNRMB08P5FPAtKMJLExBjts_Gq64tJbR7-JwxX8,1294
|
|
9
9
|
broadlink/hub.py,sha256=e78lDKcdtDNqSOZkQRqLMPMFR0PgT2g3E7VgULCq-QM,2869
|
|
10
10
|
broadlink/light.py,sha256=fWCoaf6JmDfcc7ggRmehss9D3cp66evUDlcB50Iu2LI,7660
|
|
11
11
|
broadlink/protocol.py,sha256=eRCm0fGdApVp5ko_fOP79lazQklda8N6x30ty6P0TiA,1848
|
|
12
|
-
broadlink/remote.py,sha256=
|
|
13
|
-
broadlink/sensor.py,sha256=
|
|
12
|
+
broadlink/remote.py,sha256=3UjIvyps9BmCCPemGiWCm5BgCsNpT2TjD3dKznQ93JI,22487
|
|
13
|
+
broadlink/sensor.py,sha256=Pa4fJnG28wPFIf7HSN4JQ3cIOfAdTCu5I0spnBG12Qg,2791
|
|
14
14
|
broadlink/switch.py,sha256=0VurdoGf3CTrYBSQU4ahVSLC_FYHqIRWr3dLkBwIatI,14985
|
|
15
|
-
python_broadlink-1.0.
|
|
16
|
-
python_broadlink-1.0.
|
|
17
|
-
python_broadlink-1.0.
|
|
18
|
-
python_broadlink-1.0.
|
|
19
|
-
python_broadlink-1.0.
|
|
15
|
+
python_broadlink-1.0.4.dist-info/licenses/LICENSE,sha256=h0N_LWq34pY0W-Ky3ayO6Re5ejG0XvutPlW-GL8eG5I,1111
|
|
16
|
+
python_broadlink-1.0.4.dist-info/METADATA,sha256=5uZ80FW7Vd0OzTsttoPeI78P0oXJHbLWXRkh92Rb-vE,15819
|
|
17
|
+
python_broadlink-1.0.4.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
|
|
18
|
+
python_broadlink-1.0.4.dist-info/top_level.txt,sha256=_Qx7d8oNTOLeDkAN-HHDoq1FlRNlsiaMZlyMWgHXAVc,10
|
|
19
|
+
python_broadlink-1.0.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|