Debian Codegraph @

CHANGES.rst

raw
1 async_upnp_client 0.48.2 (2026-09-17)
2 =====================================
3
4 Bugfixes
5 --------
6
7 - Gracefully handle malformed DIDL-Lite metadata returned by DLNA renderers. (#320)
8
9
10 async_upnp_client 0.48.1 (2026-08-24)
11 =====================================
12
13 Bugfixes
14 --------
15
16 - Fix SSRF false positive on IPv6 link-local addresses where the device description URL carries a zone ID from SSDP discovery but absolute service URLs in the device XML omit it. (#317)
17
18
19 async_upnp_client 0.48.0 (2026-07-26)
20 =====================================
21
22 Features
23 --------
24
25 - Add profile ohmedia for Linn/OpenHome devices
26 Add tests for ohmedia profile (#292)
27
28
29 async_upnp_client 0.47.1 (2026-07-20)
30 =====================================
31
32 Bugfixes
33 --------
34
35 - **Guard against SSRF from rogue UPnP devices (CWE-918)**
36
37 Service ``controlURL``, ``SCPDURL`` and ``eventSubURL`` values are now validated
38 before use: a value that resolves to a different host than the device
39 description URL, or that is malformed, is refused. Per UDA 1.1/2.0 these
40 elements must be relative to the description URL, so conformant devices are
41 unaffected. In strict mode a ``UpnpError`` is raised; in non-strict mode (used
42 by Home Assistant) the offending service is skipped with a warning, so a device
43 serving such URLs now exposes fewer (or no) services rather than being created
44 with cross-host URLs.
45
46 In addition, ``is_valid_location`` now validates discovery locations using
47 proper URL/IP parsing instead of substring matching. Loopback, unspecified and
48 IPv4 link-local (cloud-metadata) addresses can no longer be reached via
49 obfuscated forms — decimal, octal, hex, IPv4-mapped IPv6, percent-encoded, or
50 credentials in the authority — and malformed locations are rejected rather than
51 raising.
52
53 This is best-effort defence-in-depth, not a security boundary: a hostname that
54 resolves to such an address is still allowed, since the UPnP specification
55 permits hostnames in URLs and they cannot be distinguished from legitimate
56 device names at parse time. Hostname-based SSRF can only be caught by validating
57 the resolved address at connect time. (ghsa-94v4-2fvf-ff8p) (CVE-2026-75515)
58 - Drop stale event subscriptions instead of spinning on them, which previously could cause ``UpnpProfileDevice._resubscribe_loop`` to busy-loop and starve the asyncio event loop. (#303)
59
60
61 async_upnp_client 0.47.0 (2026-04-19)
62 =====================================
63
64 Features
65 --------
66
67 - Improve parsing of state variable type in non-strict mode.
68
69 E.g. a state variable declared with type `DateTime` will be parsed as `dateTime` in non-strict mode. (#300)
70 - Add uint32 rollover handling to IGD traffic rate counters.
71
72 The existing rate fields on ``IgdState`` (``kibibytes_per_sec_received``,
73 ``kibibytes_per_sec_sent``, ``packets_per_sec_received``, ``packets_per_sec_sent``)
74 now correctly handle 32-bit counter rollover instead of returning ``None`` when the
75 counter wraps around.
76
77 Four new ``IgdStateItem`` variants are added for callers that want the old
78 rollover-unaware behaviour (returning ``None`` on rollover):
79 ``KIBIBYTES_PER_SEC_RECEIVED_NO_ROLLOVER``, ``KIBIBYTES_PER_SEC_SENT_NO_ROLLOVER``,
80 ``PACKETS_PER_SEC_RECEIVED_NO_ROLLOVER``, and ``PACKETS_PER_SEC_SENT_NO_ROLLOVER``.
81
82 Two new methods are also added to ``IgdDevice``:
83
84 * ``async_poll_traffic_data()`` — polls the current raw traffic counters from the device.
85 * ``build_igd_state()`` — derives an ``IgdState`` (including the rollover-aware rates)
86 from two ``TrafficCounterState`` snapshots.
87
88 **Backwards compatibility:** code that reads ``IgdState`` fields by name or uses
89 ``IgdStateItem`` members by name continues to work. The rate fields now return a value
90 where they previously returned ``None`` on rollover — callers that relied on ``None``
91 to detect a counter reset should switch to the new ``_NO_ROLLOVER`` variants. Code that
92 constructs ``IgdState`` positionally or unpacks it by position will also need updating
93 for the four new fields. (#301)
94
95
96 Misc
97 ----
98
99 - #291
100
101
102 async_upnp_client 0.46.2 (2026-01-03)
103 =====================================
104
105 Features
106 --------
107
108 - Bump python-didl-lite 1.5.0 (#290)
109
110
111 async_upnp_client 0.46.1 (2025-12-12)
112 =====================================
113
114 Bugfixes
115 --------
116
117 - Reduce log noise by changing subscription INFO logs to DEBUG level. (#286)
118
119
120 async_upnp_client 0.46.0 (2025-11-14)
121 =====================================
122
123 Features
124 --------
125
126 - Add Python 3.14 support (#274)
127 - Drop Python 3.9 support. (#282)
128
129
130 Bugfixes
131 --------
132
133 - Add localhost hostname to invalid locations (#283)
134
135
136 Misc
137 ----
138
139 - #278
140
141
142 async_upnp_client 0.45.0 (2025-07-16)
143 =====================================
144
145 Features
146 --------
147
148 - Add UpnpStateVariable.step_value. (#268)
149
150
151 Bugfixes
152 --------
153
154 - Fix SSDP header parsing.
155
156 aiohttp 3.12.14 starts failing due to including the request line in the header lines to be parsed. (#273)
157
158
159 Misc
160 ----
161
162 - #267, #267
163
164
165 async_upnp_client 0.44.0 (2025-03-31)
166 =====================================
167
168 Features
169 --------
170
171 - Add the option to change the search-target in SsdpListener. (#262)
172 - Use transport for sending responses instead of a blocking socket. (#263)
173
174
175 async_upnp_client 0.43.0 (2025-01-24)
176 =====================================
177
178 Features
179 --------
180
181 - Send SSDP announcement on server start. In case the announcement cannot be sent, it will cause an error on initialization, instead of at a later moment. This makes handling the error easier from Home Assistant, as the server can be cleaned up directly. (#255)
182
183
184 Bugfixes
185 --------
186
187 - Fix variable name for WANPPPConnection service. This will add external ipaddress, uptime and wan status for supported devices. (#257)
188
189
190 async_upnp_client 0.42.0 (2024-12-22)
191 =====================================
192
193 Features
194 --------
195
196 - Drop Python 3.8 support. (#245)
197 - Log OSErrors when sending search responses, instead of letting it fail. (#247)
198
199
200 Bugfixes
201 --------
202
203 - Make async_call_action signature accept string parameter. (#246)
204
205
206 async_upnp_client 0.41.0 (2024-10-05)
207 =====================================
208
209 Features
210 --------
211
212 - Add Python 3.13 support. (#240)
213 - Bump dev dependencies
214 - Bump dependencies
215
216
217 Bugfixes
218 --------
219
220 - Argument `timeout` of method `aiohttp.ClientSession.request()` has to be of type `ClientTimeout`. (#241)
221 - Fix send_events in server state variable. (#242)
222 - Add proper XML preamble in server communication. (#243)
223 - Fix media_image_url using Resource.url instead of .uri (@chishm) (#244)
224
225
226 Misc
227 ----
228
229 - #237
230
231
232 async_upnp_client 0.40.0 (2024-07-22)
233 =====================================
234
235 Features
236 --------
237
238 - Small speed up to verifying keys are present and true in CaseInsensitiveDict (#238)
239
240
241 Misc
242 ----
243
244 - #239
245
246
247 async_upnp_client 0.39.0 (2024-06-21)
248 =====================================
249
250 Features
251 --------
252
253 - Only fetch wanted IgdState items in IGD profile. (#227)
254 - Subscribe to IGD to reduce number of polls.
255
256 This also simplifies the returned IgdState from IgdDevice.async_get_traffic_and_status_data(), as the items from StatusInfo are now diectly added to IgdState.
257
258 As a bonus, extend the dummy_router to support subscribing and use evented state variables ExternalIPAddress and ConnectionStatus. (#231)
259 - Add pre-/post-hooks when doing/handling HTTP requests.
260
261 Includes refactoring of Tuples to HttpRequest/HttpResponse, causing in breaking changes. (#233)
262 - Add retrieving of port_mapping_number_of_entries for IGDs. (#234)
263 - Add WANIPv6FirewallControl service to IGD profile.
264
265 Extend dummy_router as well to support accompanying example scripts. (#235)
266 - Reduce code in ssdp_listener to improve performance (#236)
267
268
269 Bugfixes
270 --------
271
272 - Fix subscribing to all services, for CLI and profile devices.
273
274 Fixes only subscribing to top level services, when it should subscribe to services on embedded devices as well. (#230)
275 - Drop unused `--bind` option in `subscribe` command in cli/`upnp-client`. (#232)
276
277
278 async_upnp_client 0.38.3 (2024-03-29)
279 =====================================
280
281 Features
282 --------
283
284 - Try discarding namespaces when in non-strict mode to improve handling of broken devices (#224)
285
286
287 Misc
288 ----
289
290 - #220
291
292
293 async_upnp_client 0.38.2 (2024-02-12)
294 =====================================
295
296 Misc
297 ----
298
299 - #216, #217
300
301
302 async_upnp_client 0.38.1 (2024-01-19)
303 =====================================
304
305 Bugfixes
306 --------
307
308 - Prevent error when album_art_uri is `None` (@darrynlowe) (#215)
309
310
311 async_upnp_client 0.38.0 (2023-12-17)
312 =====================================
313
314 Misc
315 ----
316
317 - #214
318
319
320 async_upnp_client 0.37.0 (2023-12-17)
321 =====================================
322
323 Bugfixes
324 --------
325
326 - No need to handle None values in IGD add_port_mapping/delete_port_mapping (#208, @JurgenR) (#209)
327
328
329 Misc
330 ----
331
332 - #204, #210, #211, #212, #213
333
334
335 async_upnp_client 0.36.2 (2023-10-20)
336 =====================================
337
338 Bugfixes
339 --------
340
341 - Support service WANIPConnection:2 in IGD profile (#206)
342
343
344 Misc
345 ----
346
347 - #203, #205, #207
348
349
350 async_upnp_client 0.36.1 (2023-09-26)
351 =====================================
352
353 Misc
354 ----
355
356 - #198, #199, #200
357
358
359 async_upnp_client 0.36.0 (2023-09-25)
360 =====================================
361
362 Misc
363 ----
364
365 - #197
366
367
368 async_upnp_client 0.35.1 (2023-09-12)
369 =====================================
370
371 Features
372 --------
373
374 - Server adds a random delay based on MX (@bdraco) (#195)
375
376
377 Bugfixes
378 --------
379
380 - Use the actual value of the NotificationSubType, instead of leaking the enum name (#179, @ikorb). (#181)
381
382
383 Misc
384 ----
385
386 - #180, #182, #183, #184, #185, #186, #187, #188, #189, #190, #191, #192, #193, #194, #196
387
388
389 async_upnp_client 0.35.0 (2023-08-27)
390 =====================================
391
392 Features
393 --------
394
395 - Reduce string conversion in CaseInsensitiveDict lookups (@bdraco)
396
397 `get` was previously provided by the parent class which
398 had to raise KeyError for missing values. Since try/except
399 is only cheap for the non-exception case the performance
400 was not good when the key was missing.
401
402 Similar to python/cpython#106665
403 but in the HA case we call this even more frequently. (#173)
404 - Avoid looking up the local address each packet (@bdraco)
405
406 The local addr will never change, we can set it when we
407 set the transport. (#174)
408 - Avoid lower-casing already lowercased string (@bdraco)
409
410 Use the upstr concept (in our case lowerstr) from multidict
411 https://aiohttp-kxepal-test.readthedocs.io/en/latest/multidict.html#upstr (#175)
412 - Reduce memory footprint of CaseInsensitiveDict (@bdraco) (#177)
413 - Avoid fetching time many times to purge devices (@bdraco)
414
415 Calling SsdpDevice.locations is now a KeysView and no longer has the side effect of purging stale locations. We now use the _timestamp that was injected into the headers to avoid fetching time again. (#178)
416
417
418 async_upnp_client 0.34.1 (2023-07-23)
419 =====================================
420
421 Features
422 --------
423
424 - Add an lru to get_adjusted_url (@bdraco)
425
426 This function gets called every time we decode an SSDP packet and its usually the same data over and over (#172)
427
428
429 async_upnp_client 0.34.0 (2023-06-25)
430 =====================================
431
432 Features
433 --------
434
435 - Support server event subscription (@PhracturedBlue) (#162)
436 - UpnpServer supports returning plain values from server Actions (@PhracturedBlue)
437
438 Note that the values are still coerced by its related UpnpStateVariable. (#166)
439 - Server supports deferred SSDP responses via MX header (@PhracturedBlue) (#168)
440 - Support backwards compatible service/device types (@PhracturedBlue) (#169)
441 - Enable servers to define custom routes (@PhracturedBlue) (#170)
442 - Drop Python 3.7 support. (#171)
443
444
445 async_upnp_client 0.33.2 (2023-05-21)
446 =====================================
447
448 Features
449 --------
450
451 - Handle negative values for the bytes/traffic counters in IGDs.
452
453 Some IGDs implement the counters as i4 (4 byte integer) instead of
454 ui4 (unsigned 4 byte integer). This change tries to work around this by applying
455 an offset of `2**31`. To access the original value, use the variables with a
456 `_original` suffix. (#157)
457
458
459 Bugfixes
460 --------
461
462 - Now properly send ssdp:byebye when server is stopped. (#158)
463 - Fix indexing bug in cli parsing scope_id in IPv6 target (@senarvi) (#159)
464
465
466 Misc
467 ----
468
469 - #160, #163, #164, #165
470
471
472 async_upnp_client 0.33.1 (2023-01-30)
473 =====================================
474
475 Bugfixes
476 --------
477
478 - Don't crash on empty LOCATION header in SSDP message. (#154)
479
480
481 async_upnp_client 0.33.0 (2022-12-20)
482 =====================================
483
484 Features
485 --------
486
487 - Provide sync callbacks too, next to async callbacks.
488
489 By using sync callbacks, the number of tasks created is reduced. Async callbacks
490 are still supported, though some parameters are renamed to explicitly note the
491 callback is async.
492
493 Also, the lock in `SsdpDeviceTracker` is removed and thus is no longer a
494 `contextlib.AbstractAsyncContextManager`. (provide_sync_callbacks)
495
496
497 Bugfixes
498 --------
499
500 - Change comma splitting code in the DLNA module to better handle misbehaving clients. (safer-comma-splitting)
501
502
503 async_upnp_client 0.32.3 (2022-12-02)
504 =====================================
505
506 Bugfixes
507 --------
508
509 - Add support for i8 and ui8 types of UPnP descriptor variables. This fixes
510 parsing of Gerbera's `A_ARG_TYPE_PosSecond` state variable. (@chishm) (int8)
511
512
513 Misc
514 ----
515
516 - dev_deps: Stricter pinning of development dependencies.
517
518
519 async_upnp_client 0.32.2 (2022-11-05)
520 =====================================
521
522 Bugfixes
523 --------
524
525 - Hostname was always expected to be a valid value when determining IP version. (hostname_unset_fix)
526 - Require scope_id to be set for source and target when creating a ssdp socket. (ipv6_scope_id_unset)
527
528
529 Misc
530 ----
531
532 - #150
533
534
535 async_upnp_client 0.32.1 (2022-10-23)
536 =====================================
537
538 Bugfixes
539 --------
540
541 - Be more tolerant about extracting UDN from USN. Before, it was expecting the literal `uuid:`. Now it is case insensitive. (more_tolerant_udn_from_usn_parsing)
542 - Several SSDP related fixes for UPnPServer. (ssdp_fixes)
543 - Fix a race condition in `server.SsdpAdvertisementAnnouncer` regarding protocol initialization. (#148)
544 - Fixes with regard to binding socket(s) for SSDP on macOS. Includes changes/improvements for Linux and Windows as well. (#149)
545
546
547 async_upnp_client 0.32.0 (2022-10-10)
548 =====================================
549
550 Features
551 --------
552
553 - Add ability to build a upnp server.
554
555 This creates a complete upnp server, including a SSDP search responder and regular SSDP advertisement broadcasting. See the scripts ``contrib/dummy_router.py`` or ``contrib/dummy_tv.py`` for examples. (#143)
556 - Add options to UpnpServer + option to always respond with root device.
557
558 The option is to ensure that Windows (11) always sees the device in the Network view in the Explorer. (#145)
559 - Provide a single method to retrieve commonly updated data. This contains:
560 * traffic counters:
561 * bytes_received
562 * bytes_sent
563 * packets_received
564 * packets_sent
565 * status_info:
566 * connection_status
567 * last_connection_error
568 * uptime
569 * external_ip_address
570 * derived traffic counters:
571 * kibibytes_per_sec_received (since last call)
572 * kibibytes_per_sec_sent (since last call)
573 * packets_per_sec_received (since last call)
574 * packets_per_sec_sent (since last call)
575
576 Also let IgdDevice calculate derived traffic counters (value per second). (#146)
577
578
579 Bugfixes
580 --------
581
582 - * `DmrDevice.async_wait_for_can_play` will poll for changes to the `CurrentTransportActions` state variable, instead of just waiting for events.
583 * `DmrDevice._fetch_headers` will perform a GET with a Range for the first byte, to minimise unnecessary network traffic. (@chishm) (#142)
584 - Breaking change: ``ST`` stands for search target, not service type. (#144)
585
586
587 Misc
588 ----
589
590 - dev_deps
591
592
593 async_upnp_client 0.31.2 (2022-06-19)
594 =====================================
595
596 Bugfixes
597 --------
598
599 - Cache decoding ssdp packets (@bdraco) (#141)
600
601
602 async_upnp_client 0.31.1 (2022-06-06)
603 =====================================
604
605 Bugfixes
606 --------
607
608 - Ignore the ``HOST``-header in ``SsdpListener``. When a device advertises on both IPv4 and IPV6, the advertisements
609 have the header ``239.255.255.250:1900`` and ``[FF02::C]:1900``, respectively. Given that the ``SsdpListener`` did
610 not ignore this header up to now, it was seen as a change and causing a reinitialisation in the Home Assistant
611 ``upnp`` component. (#140)
612
613
614 async_upnp_client 0.31.0 (2022-05-28)
615 =====================================
616
617 Bugfixes
618 --------
619
620 - Fix errors raised when `AiohttpSessionRequester` is disconnected while writing a request body.
621
622 The server is allowed to disconnect at any time during a request session, which point we want to retry the request.
623
624 A disconnection could manifest as an `aiohttp.ServerDisconnectedError` if it happened between requests, or it could be `aiohttp.ClientOSError` if it happened while we are writing the request body. Both errors derive from `aiohttp.ClientConnectionError` for socket errors.
625
626 Also use `repr` when encapsulating errors for easier debugging. (#139)
627
628
629 async_upnp_client 0.30.1 (2022-05-22)
630 =====================================
631
632 Bugfixes
633 --------
634
635 - Work around aiohttp sending invalid Host-header. When the device url contains
636 a IPv6-addresshost with scope_id, aiohttp sends the scope_id with the
637 Host-header. This causes problems with some devices, returning a HTTP 404
638 error or perhaps a HTTP 400 error. (#138)
639
640
641 async_upnp_client 0.30.0 (2022-05-20)
642 =====================================
643
644 Features
645 --------
646
647 - Gracefully handle bad Get* state variable actions
648
649 Some devices don't support all the Get* actions (e.g.
650 GetTransportSettings) that return state variables. This could cause
651 exceptions when trying to poll variables during an (initial) update. Now
652 when an expected (state variable polling) action is missing, or gives a
653 response error, it is logged but no exception is raised. (@chishm) (#137)
654
655
656 Misc
657 ----
658
659 - #136
660
661
662 async_upnp_client 0.29.0 (2022-04-24)
663 =====================================
664
665 Features
666 --------
667
668 - Always use CaseInsensitiveDict for headers (@bdraco)
669
670 Headers were typed to not always be a CaseInsensitiveDict but
671 in practice they always were. By ensuring they are always a
672 CaseInsensitiveDict we can reduce the number of string
673 transforms since we already know when strings have been
674 lowercased. (#135)
675
676
677 async_upnp_client 0.28.0 (2022-04-24)
678 =====================================
679
680 Features
681 --------
682
683 - Optimize location_changed (@bdraco) (#132)
684 - Optimize CaseInsensitiveDict usage (@bdraco) (#133)
685 - Include scope ID in link-local IPv6 host addresses (@chishm)
686
687 When determining the local IPv6 address used to connect to a remote host,
688 include the scope ID in the returned address string if using a link-local
689 IPv6 address.
690
691 This is needed to bind event listeners to the correct network interface. (#134)
692
693
694 async_upnp_client 0.27.0 (2022-03-17)
695 =====================================
696
697 Features
698 --------
699
700 - Breaking change: Don't include parts of the library from the ``async_upnp_client`` module. (#126)
701 - Don't raise parse errors if GET request returns an empty file.
702
703 Added an exception to client_factory.py to handle an empty XML document.
704 If XML document is invalid, scpd_el variable is replaced with a clean ElementTree. (#128)
705
706
707 Bugfixes
708 --------
709
710 - Don't set Content-Length header but let aiohttp calculate it. This prevents an invalid Content-Length header value when using characters which are encoded to more than one byte. (#129)
711
712
713 Misc
714 ----
715
716 - bump2version, consolidate_setupcfg, towncrier
717
718
719 Pre-towncrier changes
720 =====================
721
722 0.26.0 (2022-03-06)
723
724 - DLNA DMR profile will pass ``media_url`` unmodified to SetAVTransportURI and SetNextAVTransportURI (@chishm)
725 - Poll DLNA DMR state variables when first connecting (@chishm)
726 - Add CurrentTransportActions to list of state variables to poll when DLNA DMR device is not successfully subscribed (@chishm)
727 - More forgiving parsing of ``Cache-Control`` header value
728 - ``UpnpProfileDevice`` can be used without an ``UpnpEventHandler``
729 - Store version in ``async_upnp_client.__version__``
730
731
732 0.25.0 (2022-02-22)
733
734 - Better handle multi-stack devices by de-duplicating search responses/advertisements from different IP versions in ``SsdpListener``
735 - Use the parameter ``device_tracker`` to share the ``SsdpDeviceTracker`` between ``SsdpListener``s monitoring the same network
736 - Note that the ``SsdpDeviceTracker`` is now locked by the ``SsdpListener`` in case it is shared.
737
738
739 0.24.0 (2022-02-12)
740
741 - Add new dummy_tv/dummy_router servers (@StevenLooman)
742 - Drop python 3.6 support, add python 3.10 support (@StevenLooman)
743 - Breaking change: Improve SSDP IPv6 support, for Python versions <3.9, due to missing IPv6Address.scope_id (@StevenLooman)
744 - ``SsdpListener``, ``SsdpAdvertisementListener``, ``SsdpSearchListener``, ``UpnpProfileDevice`` now take ``AddressTupleVXType`` for source and target, instead of IPs
745 - Breaking change: Separate multi-listener event handler functionality from ``UpnpEventHandler`` into ``UpnpEventHandlerRegister`` (@StevenLooman)
746
747
748 0.23.5 (2022-02-06)
749
750 - Add new dummy_tv/dummy_router servers (@StevenLooman)
751 - Drop python 3.6 support, add python 3.10 support
752 - Ignore devices using link local addresses in their location (@Tigger2014, #119)
753
754
755 0.23.4 (2022-01-16)
756
757 - Raise ``UpnpXmlContentError`` when device has bad description XML (@chishm, #118)
758 - Raise ``UpnpResponseError`` for HTTP errors in UpnpFactory (@chishm, #118)
759 - Fix ``UpnpXmlParseError`` (@chishm, #118)
760
761
762 0.23.3 (2022-01-03)
763
764 - ``SsdpListener``: Fix error where a device seen through a search, then byebye-advertisement (@StevenLooman, #117)
765
766
767 0.23.2 (2021-12-22)
768
769 - Speed up combined_headers in ssdp_listener (@bdraco, #115)
770 - Add handling of broken SSDP-headers (#116)
771
772
773 0.23.1 (2021-12-18)
774
775 - Bump ``python-didl-lite`` to 1.3.2
776 - Log missing state vars instead of raising UpnpError in DmrDevice (@chishm)
777
778
779 0.23.0 (2021-11-28)
780
781 - Allow for renderers that do not provide a list of actions. (@Flameeyes)
782 - Fix parsing of allowedValueList (@StevenLooman)
783 - Add DMS profile for interfacing with DLNA Digital Media Servers (@chishm)
784 - More details reported in Action exceptions (@chishm)
785 - Fix type hints in ``description_cache`` (@epenet, @StevenLooman)
786
787
788 0.22.12 (2021-11-06)
789
790 - Relax async-timeout dependency, cleanup deprecated sync use (@frenck)
791
792
793 0.22.11 (2021-10-31)
794
795 - Poll state variables when event subscriptions are rejected (@chishm)
796
797
798 0.22.10 (2021-10-25)
799
800 - Fix byebye advertisements not propagated because missing location (@chishm)
801 - Require specific services for profile devices (@chishm)
802 - Bump ``python-didl-lite`` to 1.3.1
803
804
805 0.22.9 (2021-10-21)
806
807 - CLI: Don't crash on upnperrors on upnp-client subscribe (@rytilahti)
808 - DLNA/DMR Profile add support for (@chishm):
809 - play mode (repeat and shuffle)
810 - setting of play_media metadata
811 - SetNextAVTransportURI
812 - setting arbitrary metadata for SetAVTransportURI
813 - playlist title
814 - Ignore Cache-Control headers when comparing for change (@bdraco)
815 - Fix Windows error: ``[WinError 10022] An invalid argument was supplied``
816 - Fix Windows error: ``[WinError 10049] The requested address is not valid in its context``
817
818
819 0.22.8 (2021-10-08)
820
821 - Log when async_http_request retries due to ServerDisconnectedError (@chishm)
822 - More robustness when extracting UDN from USN in ``ssdp.udn_from_headers``
823
824
825 0.22.7 (2021-10-08)
826
827 - Ignore devices with an invalid location in ``ssdp_listener.SsdpListener``
828 - More robustness in IGD profile when parsing StatusInfo
829 - Log warning instead of an error with subscription related problems in profile devices
830 - Ignore devices with a location pointing to localhost in ``ssdp_listener.SsdpListener``
831
832
833 0.22.6 (2021-10-08)
834
835 - Bump python-didl-lite to 1.3.0
836 - More robustness in ``ssdp_listener.SsdpListener`` by requiring a parsed UDN (from USN) and location
837
838
839 0.22.5 (2021-10-03)
840
841 - More robustness in IGD profile by not relying on keys always being there
842
843
844 0.22.4 (2021-09-28)
845
846 - DLNA/DMR Profile: Add media metadata properties (@chishm)
847
848
849 0.22.3 (2021-09-27)
850
851 - Fix race condition where the description is fetched many times (@bdraco)
852 - Retry on ServerDisconnectedError (@bdraco)
853
854
855 0.22.2 (2021-09-27)
856
857 - Fix DmrDevice._supports method always returning False (@chishm)
858 - More informative exception messages (@chishm)
859 - UpnpProfileDevice unsubscribes from services in parallel (@chishm)
860
861
862 0.22.1 (2021-09-26)
863
864 - Fix IGD profile
865 - Fix getting all services of root and embedded devices in upnp-client
866
867
868 0.22.0 (2021-09-25)
869
870 - Always propagate search responses from SsdpListener (@bdraco)
871 - Embedded device support, also fixes the problem where services from embedded devices ended up at the root device
872
873
874 0.21.3 (2021-09-14)
875
876 - Fix ``ssdp_listener.SsdpDeviceTracker`` to update device's headers upon ssdp:byebye advertisement (@chishm)
877 - Several optimizations related to ``ssdp_listener.SsdpListener`` (@bdraco)
878
879
880 0.21.2 (2021-09-12)
881
882 - Tweak CaseInsensitiveDict to continue to preserve case (@bdraco)
883
884
885 0.21.1 (2021-09-11)
886
887 - Log traffic before decoding response text from device
888 - Optimize header comparison (@bdraco)
889
890
891 0.21.0 (2021-09-05)
892
893 - More pylint/mypy
894 - Fixed NoneType exception in DmrDevice.media_image_url (@mkliche)
895 - Breaking change: Rename ``advertisement.UpnpAdvertisementListener`` to ``advertisement.SsdpAdvertisementListener``
896 - Breaking change: Rename ``search.SSDPListener`` to ``search.SsdpSearchListener``
897 - Add ``ssdp_listener.SsdpListener``, class to keep track of devices seen via SSDP advertisements and searches
898 - Breaking change: ``UpnpDevice.boot_id`` and ``UpnpDevice.config_id`` have been moved to ``UpnpDevice.ssdp_headers``, using the respecitive keys from the SSDP headers
899
900
901 0.20.0 (2021-08-17)
902
903 - Wrap XML ``ParseError`` in an error type derived from it and ``UpnpError`` too (@chishm)
904 - Breaking change: Calling ``async_start`` on ``SSDPListener`` no longer calls ``async_search`` immediately. (#77) @bdraco
905 - Breaking change: The ``target_ip`` argument of ``search.SSDPListener`` has been dropped and replaced with ``target`` which takes a ``AddressTupleVXType`` (#77) @bdraco
906 - Breaking change: The ``target_ip`` argument of ``search.async_search`` has been dropped and replaced with ``target`` which takes a ``AddressTupleVXType`` (#77) @bdraco
907
908
909 0.19.2 (2021-08-04)
910
911 - Clean up ``UpnpRequester``: Remove ``body_type`` parameter
912 - Allow for overriding the ``target`` in ``ssdp.SSDPListener.async_search()``
913 - Set SO_BROADCAST flag, fixes ``Permission denied`` error when sending to global broadcast address
914
915
916 0.19.1 (2021-07-21)
917
918 - Work around duplicate headers in SSDP responses (#74)
919
920
921 0.19.0 (2021-06-19)
922
923 - Rename ``profiles.dlna.DlanOrgFlags`` to ``DlnaOrgFlags`` to fix a typo (@chishm)
924 - Defer event callback URL determination until event subscriptions are created (@chishm)
925 - Add ``UpnpDevice.icons`` and ``UpnpProfileDevice.icon`` to get URLs to device icons (@chishm)
926 - Add more non-strict parsing of action responses (#68)
927 - Stick with ``asyncio.get_event_loop()`` for Python 3.6 compatibility
928 - asyncio and aiohttp exceptions are wrapped in exceptions derived from ``UpnpError`` to hide implementation details and make catching easier (@chishm)
929 - ``UpnpProfileDevice`` can resubscribe to services automatically, using an asyncio task (@chishm)
930
931
932 0.18.0 (2021-05-23)
933
934 - Add SSDPListener which is now the underlying code path for async_search and can be used as a long running listener (@bdraco)
935
936
937 0.17.0 (2021-05-09)
938
939 - Add UpnpFactory non_strict option, replacing disable_state_variable_validation and disable_unknown_out_argument_error
940 - UpnpAction tries non-versioned service type (#68) in non-strict mode
941 - Strip spaces, line endings and null characters before parsing XML (@apal0934)
942 - Properly parse and return subscription timeout
943 - More strip spaces, line engines and null characters before parsing XML
944
945
946 0.16.2 (2021-04-25)
947
948 - Improve performance of parsing headers by switching to aiohttp.http_parser.HeadersParser (@bdraco)
949
950
951 0.16.1 (2021-04-22)
952
953 - Don't double-unescape action responses (#50)
954 - Add ``UpnpDevice.service_id()`` to get service by service_id. (@bazwilliams)
955 - Fix 'was never awaited'-warning
956
957
958 0.16.0 (2021-03-30)
959
960 - Fix timespan formatting for content > 1h
961 - Try to fix invalid device encodings
962 - Rename ``async_upnp_client.traffic`` logger to ``async_upnp_client.traffic.upnp`` and add ``async_upnp_client.traffic.ssdp`` logger
963 - Added ``DeviceUpdater`` to support updating the ``UpnpDevice`` inline on changes to ``BOOTID.UPNP.ORG``/``CONFIGID.UPNP.ORG``/``LOCATION``
964 - Added support for PAUSED_PLAYBACK state (#56, @brgerig)
965 - Add ``DmrDevice.transport_state``, deprecate ``DmrDevice.state``
966 - Ignore prefix/namespace in DLNA-Events for better compatibility
967 - DLNA set_transport_uri: Allow supplying own meta_data (e.g. received from a content directory)
968 - DLNA set_transport_uri: Backwards incompatible change: Only media_uri and media_title are required.
969 To override mime_type, upnp_class or dlna_features create meta_data via construct_play_media_metadata()
970
971
972 0.15.0 (2021-03-13)
973
974 - Added ability to set additional HTTP headers (#51)
975 - Nicer error message on invalid Action Argument
976 - Store raw received argument value (#50)
977 - Be less strict about didl-lite
978 - Allow targeted announces (#53, @elupus)
979 - Support ipv6 search and advertisements (#54, @elupus)
980
981
982 0.14.15 (2020-11-01)
983
984 - Do not crash on empty XML file (@ekandler)
985 - Option to print timestamp in ISO8601 (@kitlaan)
986 - Option to not print LastChange subscription variable (@kitlaan)
987 - Test with Python 3.8 (@scop)
988 - Less stricter version pinning of ``python-didl-lite`` (@fabaff)
989 - Drop Python 3.5 support, upgrade ``pytest``/``pytest-asyncio``
990 - Convert type comments to annotations
991
992
993 0.14.14 (2020-04-25)
994
995 - Add support for fetching the serialNumber (@bdraco)
996
997
998 0.14.13 (2020-04-08)
999
1000 - Expose ``device_type`` on ``UpnpDevice`` and ``UpnpProfileDevice``
1001
1002
1003 0.14.12 (2019-11-12)
1004
1005 - Improve parsing of state variable types: date, dateTime, dateTime.tz, time, time.tz
1006
1007
1008 0.14.11 (2019-09-08)
1009
1010 - Support state variable types: date, dateTime, dateTime.tz, time, time.tz
1011
1012
1013 0.14.10 (2019-06-21)
1014
1015 - Ability to pass timeout argument to async_search
1016
1017
1018 0.14.9 (2019-05-11)
1019
1020 - Fix service resubscription failure: wrong timeout format (@romaincolombo)
1021 - Disable transport action checks for non capable devices (@romaincolombo)
1022
1023
1024 0.14.8 (2019-05-04)
1025
1026 - Added the disable_unknown_out_argument_error to disable exception raising for not found arguments (@p3g4asus)
1027
1028
1029 0.14.7 (2019-03-29)
1030
1031 - Better handle empty default values for state variables (@LooSik)
1032
1033
1034 0.14.6 (2019-03-20)
1035
1036 - Fixes to CLI
1037 - Handle invalid event-XML containing invalid trailing characters
1038 - Improve constructing metadata when playing media on DLNA/DMR devices
1039 - Upgrade to python-didl-lite==1.2.4 for namespacing changes
1040
1041
1042 0.14.5 (2019-03-02)
1043
1044 - Allow overriding of callback_url in AiohttpNotifyServer (@KarlVogel)
1045 - Check action/state_variable exists when retrieving it, preventing an error
1046
1047
1048 0.14.4 (2019-02-04)
1049
1050 - Ignore unknown state variable changes via LastChange events
1051
1052
1053 0.14.3 (2019-01-27)
1054
1055 - Upgrade to python-didl-lite==1.2.2 for typing info, add ``py.typed`` marker
1056 - Add fix for HEOS-1 speakers: default subscription time-out to 9 minutes, only use channel Master (@stp6778)
1057 - Upgrade to python-didl-lite==1.2.3 for bugfix
1058
1059
1060 0.14.2 (2019-01-19)
1061
1062 - Fix parsing response of Action call without any return values
1063
1064
1065 0.14.1 (2019-01-16)
1066
1067 - Fix missing async_upnp_client.profiles in package
1068
1069
1070 0.14.0 (2019-01-14)
1071
1072 - Add __repr__ for UpnpAction.Argument and UPnpService.Action (@rytilahti)
1073 - Support advertisements and rename discovery to search
1074 - Use defusedxml to parse XML (@scop)
1075 - Fix UpnpProfileDevice.async_search() + add UpnpProfileDevice.upnp_discover() for backwards compatibility
1076 - Add work-around for win32-platform when using ``upnp-client search``
1077 - Minor changes
1078 - Typing fixes + automated type checking
1079 - Support binding to IP(v4) for search and advertisements
1080
1081
1082 0.13.8 (2018-12-29)
1083
1084 - Send content-type/charset on call-action, increasing compatibility (@tsvi)
1085
1086
1087 0.13.7 (2018-12-15)
1088
1089 - Make UpnpProfileDevice.device public and add utility methods for device information
1090
1091
1092 0.13.6 (2018-12-10)
1093
1094 - Add manufacturer, model_description, model_name, model_number properties to UpnpDevice
1095
1096
1097 0.13.5 (2018-12-09)
1098
1099 - Minor refactorings: less private variables which are actually public (through properties) anyway
1100 - Store XML-node at UpnpDevice/UpnpService/UpnpAction/UpnpAction.Argument/UpnpStateVariable
1101 - Use http.HTTPStatus
1102 - Try to be closer to the UPnP spec with regard to eventing
1103
1104
1105 0.13.4 (2018-12-07)
1106
1107 - Show a bit more information on unexpected status from HTTP GET
1108 - Try to handle invalid XML from LastChange event
1109 - Pylint fixes
1110
1111
1112 0.13.3 (2018-11-18)
1113
1114 - Add option to ``upnp-client`` to set timeout for device communication/discovery
1115 - Add option to be strict (default false) with regard to invalid data
1116 - Add more error handling to ``upnp-client``
1117 - Add async_discovery
1118 - Fix discovery-traffic not being logged to async_upnp_client.traffic-logger
1119 - Add discover devices specific from/for Profile
1120
1121
1122 0.13.2 (2018-11-11)
1123
1124 - Better parsing + robustness for media_duration/media_position in dlna-profile
1125 - Ensure absolute URL in case a relative URL is returned for DmrDevice.media_image_url (with fix by @rytilahti)
1126 - Fix events not being handled when subscribing to all services ('*')
1127 - Gracefully handle invalid values from events by setting None/UpnpStateVariable.UPNP_VALUE_ERROR/None as value/value_unchecked
1128 - Work-around for devices which don't send the SID upon re-subscribing
1129
1130
1131 0.13.1 (2018-11-03)
1132
1133 - Try to subscribe if re-subscribe didn't work + push subscribe-related methods upwards to UpnpProfileDevice
1134 - Do store min/max/allowed values at stateVariable even when disable_state_variable_validation has been enabled
1135 - Add relative and absolute Seek commands to DLNA DMR profile
1136 - Try harder to get a artwork picture for DLNA DMR Profile
1137
1138
1139 0.13.0 (2018-10-27)
1140
1141 - Add support for discovery via SSDP
1142 - Make IGD aware that certain actions live on WANPPP or WANIPC service
1143
1144
1145 0.12.7 (2018-10-18)
1146
1147 - Log cases where a stateVariable has no sendEvents/sendEventsAttribute set at debug level, instead of warning
1148
1149
1150 0.12.6 (2018-10-17)
1151
1152 - Handle cases where a stateVariable has no sendEvents/sendEventsAttribute set
1153
1154
1155 0.12.5 (2018-10-13)
1156
1157 - Prevent error when not subscribed
1158 - upnp-client is more friendly towards user/missing arguments
1159 - Debug log spelling fix (@scop)
1160 - Add some more IGD methods (@scop)
1161 - Add some more IGD WANIPConnection methods (@scop)
1162 - Remove new_ prefix from NatRsipStatusInfo fields, fix rsip_available type (@scop)
1163 - Add DLNA RC picture controls + refactoring (@scop)
1164 - Typing improvements (@scop)
1165 - Ignore whitespace around state variable names in XML (@scop)
1166 - Add basic printer support (@scop)
1167
1168
1169 0.12.4 (2018-08-17)
1170
1171 - Upgrade python-didl-lite to 1.1.0
1172
1173
1174 0.12.3 (2018-08-16)
1175
1176 - Install the command line tool via setuptools' console_scripts entrypoint (@mineo)
1177 - Show available services/actions when unknown service/action is called
1178 - Add configurable timeout to aiohttp requesters
1179 - Add IGD device + refactoring common code to async_upnp_client.profile
1180 - Minor fixes to CLI, logging, and state_var namespaces
1181
1182
1183 0.12.2 (2018-08-05)
1184
1185 - Add TravisCI build
1186 - Add AiohttpNotifyServer
1187 - More robustness in DmrDevice.media_*
1188 - Report service with device UDN
1189
1190
1191 0.12.1 (2018-07-22)
1192
1193 - Fix examples/get_volume.py
1194 - Fix README.rst
1195 - Add aiohttp utility classes
1196
1197
1198 0.12.0 (2018-07-15)
1199
1200 - Add upnp-client, move async_upnp_client.async_upnp_client to async_upnp_client.__init__
1201 - Hide voluptuous errors, raise UpnpValueError
1202 - Move UPnP eventing to UpnpEventHandler
1203 - Do traffic logging in UpnpRequester
1204 - Add DLNA DMR implementation/abstraction
1205
1206
1207 0.11.2 (2018-07-05)
1208
1209 - Fix log message
1210 - Fix typo in case of failed subscription (@yottatsa)
1211
1212
1213 0.11.1 (2018-07-05)
1214
1215 - Log getting initial description XMLs with traffic logger as well
1216 - Improve SUBSCRIBE and implement SUBSCRIBE-renew
1217 - Add more type hints
1218
1219
1220 0.11.0 (2018-07-03)
1221
1222 - Add more type hints
1223 - Allow ignoring of data validation for state variables, instead of just min/max values
1224
1225
1226 0.10.1 (2018-06-30)
1227
1228 - Fixes to setup.py and setup.cfg
1229 - Do not crash on empty body on notifications (@rytilahti)
1230 - Styling/linting fixes
1231 - modelDescription from device description XML is now optional
1232 - Move to async/await syntax, from old @asyncio.coroutine/yield from syntax
1233 - Allow ignoring of allowedValueRange for state variables
1234 - Fix handling of UPnP events and add utils to handle DLNA LastChange events
1235 - Do not crash when state variable is not available, allow easier event debugging (@rytilahti)
1236
1237
1238 0.10.0 (2018-05-27)
1239
1240 - Remove aiohttp dependency, user is now free/must now provide own UpnpRequester
1241 - Don't depend on pytz
1242 - Proper (un)escaping of received and sent data in UpnpActions
1243 - Add async_upnp_client.traffic logger for easier monitoring of traffic
1244 - Support more data types
1245
1246
1247 0.9.1 (2018-04-28)
1248
1249 - Support old style ``sendEvents``
1250 - Add response-body when an error is received when calling an action
1251 - Fixes to README
1252 - Fixes to setup
1253
1254
1255 0.9.0 (2018-03-18)
1256
1257 - Initial release