Debian Codegraph @

CHANGES.rst

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