Commit graph

19 commits

Author SHA1 Message Date
Ville Skyttä
7d03b02192
Spelling fixes () 2021-06-11 13:35:03 +02:00
J. Nick Koston
12ac4109f4
Ensure ssdp can callback messages that do not have an ST ()
* Ensure ssdp can callback messages that do not have an ST

Sonos sends unsolicited messages when the device reboots. We want
to capture these to ensure we can recover the subscriptions as soon
as the device reboots

* Update homeassistant/components/ssdp/__init__.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-06-05 09:23:51 +02:00
J. Nick Koston
c1111afef8
Allow registering a callback to ssdp that matches any key value () 2021-06-03 08:26:37 -10:00
J. Nick Koston
32dc62a996
Handle empty ssdp descriptions in the cache () 2021-05-29 22:50:48 -05:00
J. Nick Koston
fb50cf9840
Add network and callback support to SSDP ()
Co-authored-by: Ruslan Sayfutdinov <ruslan@sayfutdinov.com>
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2021-05-28 21:18:59 -05:00
Ville Skyttä
153d6e891e
Use config_entries.SOURCE_* constants () 2021-04-25 11:27:40 +02:00
J. Nick Koston
403c6b9e26
Stop ssdp scans when stop event happens () 2021-04-14 22:23:15 +02:00
J. Nick Koston
39785c5cef
Switch ssdp to be async by using async_upnp_client for scanning ()
SSDP scans no longer runs in the executor

This is an interim step that converts the async_upnp_client
response to netdisco's object to ensure fully backwards
compatibility
2021-02-18 11:00:11 +01:00
Vladimír Záhradník
ee55223065
SSDP response decode: replace invalid utf-8 characters ()
* SSDP response decode: replace invalid utf-8 characters

* Add test to validate replaced data

Co-authored-by: Joakim Plate <elupus@ecce.se>
2021-01-31 17:59:14 +01:00
J. Nick Koston
4907996dd6
Guard against empty ssdp locations () 2020-11-13 09:40:25 +01:00
Ville Skyttä
eb0af3752c
Add more SSDP discovery data and constants () 2020-09-14 09:18:09 +02:00
J. Nick Koston
d0d0403664
Add zeroconf/homekit/ssdp discovery support for custom components ()
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2020-08-05 15:50:56 +02:00
Ville Skyttä
435a88636a
Address new issues flagged by flake8 3.8.0a2 () 2020-04-30 21:37:58 +02:00
Ville Skyttä
d236a19139
Include all SSDP data in discovery info ()
* Include all SSDP data in discovery info

* Use UPnP device description as discovery info, inject some SSDP attrs

* Clean up attribute names

* Adapt existing SSDP flows to changed attribute names

* Prefix all SSDP UPnP attribute name constants with ATTR_UPNP, tweak a bit
2019-12-19 19:28:03 +02:00
Bas Nijholt
23b92b2a56 Sort imports according to PEP8 for components starting with "S" () 2019-12-09 14:38:01 +01:00
Ville Skyttä
1679ec3245 SSDP matching improvements ()
* SSDP matching improvements

- support multiple match groups per domain
- require matches on all, not any item in a group
- support matching on all UPnP device description data

* Manifest structure fixes
2019-11-02 12:30:09 -07:00
Paulus Schoutsen
4de97abc3a Black 2019-07-31 12:25:30 -07:00
Paulus Schoutsen
6f299e7245
Improve error handling () 2019-05-30 16:23:42 -07:00
Paulus Schoutsen
9debbfb1a8
Add SSDP integration ()
* Add SSDP integration

* Fix tests

* Sort all the things

* Add netdisco to test requirements
2019-05-26 19:48:27 -07:00