Commit Graph

687 Commits (116759f2a12e3c506f100ad0b7a4bd5ae59a8ab2)

Author SHA1 Message Date
Bram Kragten b2cfbb7d1e
Update frontend to 20211007.1 (#57385) 2021-10-09 22:57:13 +02:00
Steven Looman ba83433c64
Fix multiple upnp/ssdp issues (#57314) 2021-10-08 08:57:49 -07:00
Bram Kragten 33b8130002
Update frontend to 20211007.0 (#57268) 2021-10-07 13:18:12 -07:00
Bram Kragten e69a1c3546
Update frontend to 20211006.0 (#57164) 2021-10-06 11:33:55 +02:00
Franck Nijhof 3645568dcc
Upgrade jinja2 to 3.0.2 (#57095) 2021-10-05 11:03:51 +02:00
Bram Kragten 91d3d39f6c
Update frontend to 20211004.0 (#57073) 2021-10-04 20:52:17 -07:00
Steven Looman 41d2f03b2f
Bump async-upnp-client to 0.22.5 (#56989) 2021-10-03 07:28:41 -10:00
Bram Kragten ad6129c505
Update frontend to 20211002.0 (#56963) 2021-10-02 23:16:29 +02:00
Bram Kragten 8196a84538
Update frontend to 20210930.0 (#56827) 2021-09-30 16:22:36 +02:00
J. Nick Koston f7ef973c68
Bump aiodiscover to 1.4.4 to fix mac matching with leading 0s (#56791) 2021-09-29 13:18:13 -04:00
Michael Chisholm f7d95588f8
Provide most media metadata in DlnaDmrEntity (#56728)
Co-authored-by: Steven Looman <steven.looman@gmail.com>
2021-09-28 19:37:23 -05:00
Michael Chisholm a28fd7d61b
Config-flow for DLNA-DMR integration (#55267)
* Modernize dlna_dmr component: configflow, test, types

* Support config-flow with ssdp discovery
* Add unit tests
* Enforce strict typing
* Gracefully handle network devices (dis)appearing

* Fix Aiohttp mock response headers type to match actual response class

* Fixes from code review

* Fixes from code review

* Import device config in flow if unavailable at hass start

* Support SSDP advertisements

* Ignore bad BOOTID, fix ssdp:byebye handling

* Only listen for events on interface connected to device

* Release all listeners when entities are removed

* Warn about deprecated dlna_dmr configuration

* Use sublogger for dlna_dmr.config_flow for easier filtering

* Tests for dlna_dmr.data module

* Rewrite DMR tests for HA style

* Fix DMR strings: "Digital Media *Renderer*"

* Update DMR entity state and device info when changed

* Replace deprecated async_upnp_client State with TransportState

* supported_features are dynamic, based on current device state

* Cleanup fully when subscription fails

* Log warnings when device connection fails unexpectedly

* Set PARALLEL_UPDATES to unlimited

* Fix spelling

* Fixes from code review

* Simplify has & can checks to just can, which includes has

* Treat transitioning state as playing (not idle) to reduce UI jerking

* Test if device is usable

* Handle ssdp:update messages properly

* Fix _remove_ssdp_callbacks being shared by all DlnaDmrEntity instances

* Fix tests for transitioning state

* Mock DmrDevice.is_profile_device (added to support embedded devices)

* Use ST & NT SSDP headers to find DMR devices, not deviceType

The deviceType is extracted from the device's description XML, and will not
be what we want when dealing with embedded devices.

* Use UDN from SSDP headers, not device description, as unique_id

The SSDP headers have the UDN of the embedded device that we're interested
in, whereas the device description (`ATTR_UPNP_UDN`) field will always be
for the root device.

* Fix DMR string English localization

* Test config flow with UDN from SSDP headers

* Bump async-upnp-client==0.22.1, fix flake8 error

* fix test for remapping

* DMR HA Device connections based on root and embedded UDN

* DmrDevice's UpnpDevice is now named profile_device

* Use device type from SSDP headers, not device description

* Mark dlna_dmr constants as Final

* Use embedded device UDN and type for unique ID when connected via URL

* More informative connection error messages

* Also match SSDP messages on NT headers

The NT header is to ssdp:alive messages what ST is to M-SEARCH responses.

* Bump async-upnp-client==0.22.2

* fix merge

* Bump async-upnp-client==0.22.3

Co-authored-by: Steven Looman <steven.looman@gmail.com>
Co-authored-by: J. Nick Koston <nick@koston.org>
2021-09-27 15:47:01 -05:00
Fabian Affolter 44a4507b51
Upgrade requests to 2.26.0 (#56683)
Co-authored-by: J. Nick Koston <nick@koston.org>
2021-09-26 21:44:28 -05:00
Fabian Affolter 115d34f55a
Set certifi to >=2021.5.30 (#56679)
Co-authored-by: J. Nick Koston <nick@koston.org>
2021-09-26 21:19:30 -05:00
J. Nick Koston 7ab6c82ad2
Drop defusedxml dep from ssdp manifest (#56699) 2021-09-26 19:49:43 -05:00
J. Nick Koston 26e031984b
Ensure sonos always gets ssdp callbacks from searches (#56591) 2021-09-26 17:16:03 -05:00
Fabian Affolter 2326e3ed94
Upgrade voluptuous to 0.12.2 (#56680) 2021-09-26 18:59:00 +02:00
Fabian Affolter 65bce33a63
Upgrade emoji to 1.5.0 (#56684) 2021-09-26 15:09:13 +02:00
Fabian Affolter a0a359e2ef
Upgrade ciso8601 to 2.2.0 (#56678) 2021-09-26 14:47:29 +02:00
J. Nick Koston a6ccb1821e
Update zeroconf to 0.36.7 (#56553) 2021-09-23 08:00:17 -05:00
Paulus Schoutsen 974376a8de
Bump frontend to 20210922.0 (#56546) 2021-09-22 16:20:58 -07:00
Paulus Schoutsen e34c985534
Simplify cloud request connection handling (#56243)
Co-authored-by: Pascal Vizeli <pascal.vizeli@syshack.ch>
2021-09-22 07:51:31 -07:00
Pascal Vizeli 7698c179ac
Upgrade cryptography to 3.4.8 (#56481)
* Upgrade cryptography to 3.4.8

* Fix file
2021-09-21 11:06:52 +02:00
J. Nick Koston b060c025ce
Bump zeroconf to 0.36.6 (#56438)
- Performance improvements (faster HomeKit startup)

Changelog: https://github.com/jstasiak/python-zeroconf/compare/0.36.5...0.36.6
2021-09-20 07:00:46 +02:00
J. Nick Koston 75c029c56b
Bump zeroconf to 0.36.5 (#56413) 2021-09-18 21:52:09 -10:00
J. Nick Koston 8814c53504
Bump zeroconf to 0.36.4 (#56314) 2021-09-16 21:04:54 -10:00
J. Nick Koston 98cf34c7c3
Bump zeroconf to 0.36.3 (#56233) 2021-09-14 13:02:37 -10:00
Steven Looman 73260c5b88
Move parts of ssdp to async_upnp_client (#55540)
* Move parts of ssdp to async_upnp_client

* Fix test for environments with multiple sources

* Fix sonos tests

* More fixes/changes

* More fixes

* Use async_upnp_client==0.21.0

* Pylint/test fixes

* More changes after review

* Fix tests

* Improve testing

* Fix mypy

* Fix yamaha_musiccast tests?

* Changes after review

* Pylint

* Reduce calls to combined_headers

* Update to async_upnp_client==0.21.1

* Update to async_upnp_client==0.21.2

* use as_dict

Co-authored-by: J. Nick Koston <nick@koston.org>
2021-09-11 13:38:16 -10:00
Paulus Schoutsen 64fd496932
Bump frontend to 20210911.0 (#56115) 2021-09-11 12:34:01 -07:00
Ruslan Sayfutdinov a9ed4fa405
Bump awesomeversion to 21.8.1 (#55817) 2021-09-11 11:40:46 -07:00
Joakim Sørensen c59540cfc7
Revert "Bump pillow to 8.3.2 (#55970)" (#56048)
This reverts commit ee7202d10a.
2021-09-10 17:01:51 +02:00
uvjustin dd9bfe7aa0
Add package constraint anyio>=3.3.1 (#55997) 2021-09-09 15:33:09 +02:00
Paulus Schoutsen ee7202d10a
Bump pillow to 8.3.2 (#55970) 2021-09-08 12:06:30 -07:00
Ruslan Sayfutdinov 7195b8222b
Bump PyJWT to 2.1.0 (#55911) 2021-09-07 20:59:02 -07:00
Paulus Schoutsen 93083513b4
Bump hass-nabucasa 49 (#55823) 2021-09-06 16:05:33 -07:00
Paulus Schoutsen 19c54b8cbf
Drop unused ruamel (#55672) 2021-09-03 22:17:10 -07:00
Paulus Schoutsen 27e29b714c
Bump cloud to 0.47.1 (#55312)
* Bump cloud to 0.47.0

* Bump reqs

* Bump to 0.47.1

* Do not load hass_nabucasa during http startup

* fix some tests

* Fix test

Co-authored-by: Ludeeus <ludeeus@ludeeus.dev>
2021-09-01 09:54:54 -07:00
Bram Kragten 9b3346bc80
Update frontend to 20210830.0 (#55472) 2021-08-30 23:32:19 +02:00
J. Nick Koston 27ecd43da3
Bump zeroconf to 0.36.2 (#55459)
- Now sends NSEC records when requesting non-existent address types
  Implements RFC6762 sec 6.2 (http://datatracker.ietf.org/doc/html/rfc6762#section-6.2)

- This solves a case where a HomeKit bridge can take a while to update
  because it is waiting to see if an AAAA (IPv6) address is available
2021-08-30 08:59:41 -07:00
J. Nick Koston f37c541a50
Bump zeroconf to 0.36.1 (#55425)
- Fixes duplicate records in the cache

- Changelog: https://github.com/jstasiak/python-zeroconf/compare/0.36.0...0.36.1
2021-08-29 20:29:46 -07:00
Joakim Sørensen 2fcd77098d
Pin regex to 2021.8.28 (#55368) 2021-08-28 15:00:14 +02:00
Paulus Schoutsen 038121e87b
Bump frontend to 20210825.0 (#55221) 2021-08-25 11:36:06 -07:00
Allen Porter 58f170ba45
Pin google-api-core to avoid new version of grpcio (#55115) 2021-08-24 09:43:29 +02:00
J. Nick Koston 6f75a853f8
Bump httpx to 0.19.0 (#55106)
* Bump httpx to 0.19.0

* regen constraints
2021-08-23 20:27:53 -07:00
J. Nick Koston aa7c72a8b5
Bump sqlalchemy to 1.4.23 (#54980)
- Changelog: https://docs.sqlalchemy.org/en/14/changelog/changelog_14.html#change-1.4.23
2021-08-21 13:00:39 -04:00
J. Nick Koston dc74a52f58
Add support for USB discovery (#54904)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-08-20 14:04:18 -05:00
Paulus Schoutsen c75c4aeea5
Bump frontend to 20210818.0 (#54851) 2021-08-18 13:56:43 -07:00
Joakim Sørensen bf494b5697
Remove distro from updater requirements (#54804) 2021-08-18 12:31:43 +02:00
J. Nick Koston 62015f5495
Bump async-upnp-client to 0.20.0, adapt to breaking changes (#54782) 2021-08-18 12:13:59 +02:00
J. Nick Koston 41c3bd113c
Bump zeroconf to 0.36.0 (#54720) 2021-08-16 23:54:45 +02:00
J. Nick Koston d01addbd24
Bump zeroconf to 0.35.1 (#54666) 2021-08-15 18:27:10 -05:00
J. Nick Koston c10497d499
Bump zeroconf to 0.35.0 (#54604)
Fixes https://github.com/home-assistant/core/issues/54531
Fixes https://github.com/home-assistant/core/issues/54434
Fixes https://github.com/home-assistant/core/issues/54487
2021-08-13 23:26:57 -07:00
Bram Kragten 8264fd2eb6
Update frontend to 20210813.0 (#54603) 2021-08-13 11:48:31 -07:00
Steven Looman 2c1728022d
Use ssdp callbacks in upnp (#53840) 2021-08-13 11:13:25 -05:00
Paulus Schoutsen ed0fd00746
Bump hass_nabucasa to 0.46.0 (#54421) 2021-08-10 11:30:02 -07:00
Paulus Schoutsen 38a7bdbcf3
Do not process forwarded for headers for cloud requests (#54364) 2021-08-10 01:45:56 +02:00
Bram Kragten 38cb0553f3
Update frontend to 20210809.0 (#54350) 2021-08-09 22:27:09 +02:00
J. Nick Koston f37b164d60
Bump zeroconf to 0.34.3 (#54294) 2021-08-09 20:58:27 +02:00
Allen Porter 22acaa8e63
Pin google-cloud-pubsub to an older version (#54239)
Pin google-cloud-pubsub to an older version, since newer versions have a
pin that is incompatible with the existing grpcio pin already in package_constraints.txt
2021-08-07 21:00:37 -07:00
J. Nick Koston acc0288f4c
Bump zeroconf to 0.33.4 to ensure zeroconf can startup when ipv6 is disabled (#54165)
Changelog: https://github.com/jstasiak/python-zeroconf/compare/0.33.3...0.33.4
2021-08-06 12:48:00 -07:00
J. Nick Koston 46ad55455b
Bump zeroconf to 0.33.3 (#54108) 2021-08-05 19:24:09 -07:00
Bram Kragten a8e4482594
Update frontend to 20210804.0 (#53997) 2021-08-04 17:03:04 -07:00
Bram Kragten c682d5d5e4
Update frontend to 20210803.2 (#53923) 2021-08-04 02:10:33 +02:00
Paulus Schoutsen 27848720a4
Bump frontend to 20210803.0 (#53897) 2021-08-02 21:39:53 -07:00
Paulus Schoutsen 80a8f35a42
Bump frontend to 20210802.0 (#53876) 2021-08-02 10:42:04 -07:00
Bram Kragten 32c2d42863
Update frontend to 20210801.0 (#53841) 2021-08-01 15:06:28 -07:00
Bram Kragten c72fc0c08c
Update frontend to 20210730.0 (#53778) 2021-07-30 14:11:47 -07:00
Paulus Schoutsen 2d83ad3211
Bump frontend to 20210729.0 (#53717) 2021-07-29 12:34:32 -07:00
Paulus Schoutsen 0e1eef5737
Bump frontend to 20210728.0 (#53634) 2021-07-28 20:41:27 +02:00
J. Nick Koston babd9f048f
Bump zeroconf to 0.33.2 (#53625)
- Changelog: https://github.com/jstasiak/python-zeroconf/compare/0.33.1...0.33.2
2021-07-28 08:49:43 -07:00
Pascal Vizeli f3e7fb5798
Pin pandas to 1.3.0 (#53607)
Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-07-28 10:30:05 +02:00
Paulus Schoutsen a004a0dd4f
Bump frontend to 20210727.0 (#53591) 2021-07-28 01:48:04 +02:00
Bram Kragten 7cb3414517
Update frontend to 20210726.0 (#53522) 2021-07-26 23:56:40 +02:00
Steven Looman 34b1ab5f5c
Upgrade to async-upnp-client==0.19.1 (#53288) 2021-07-21 14:29:27 -07:00
Franck Nijhof cfd69de5a7
Upgrade PyNaCl to 1.4.0 (#53287) 2021-07-21 14:28:22 -07:00
J. Nick Koston 0ce071e0a4
Bump httpx to 0.18.2 (#53257) 2021-07-20 21:47:13 -07:00
J. Nick Koston 12b29e2895
Bump zeroconf to 0.33.1 (#53179) 2021-07-19 12:10:32 +02:00
J. Nick Koston bf831267cf
Bump zeroconf to 0.33.0 (#53174)
- Changelog: https://github.com/jstasiak/python-zeroconf/compare/0.32.1...0.33.0
2021-07-19 10:22:12 +02:00
Bram Kragten e2b1cdafc9
Update frontend to 20210707.0 (#52624) 2021-07-07 10:43:45 +02:00
Bram Kragten 33577e1bfc
Update frontend to 20210706.0 (#52577) 2021-07-06 11:52:53 +02:00
J. Nick Koston 34782557b7
Bump zeroconf to 0.32.1 (#52547)
- Changelog: https://github.com/jstasiak/python-zeroconf/compare/0.32.0...0.32.1

- Fixes #52384
2021-07-05 09:17:11 -05:00
Bram Kragten 508f9a8296
Update frontend to 20210630.0 (#52336) 2021-06-30 13:34:28 +02:00
J. Nick Koston 9f16e390f5
Deprecate IPv6 zeroconf setting in favor of the network integration (#51173) 2021-06-29 17:13:31 -10:00
Joakim Sørensen 720a67957b
Bump hass-nabucasa to 0.44.0 (#52303) 2021-06-29 16:04:21 +02:00
Steven Looman a127131c1b
Upgrade async_upnp_client to 0.19.0 (#52019) 2021-06-20 18:17:39 +02:00
Franck Nijhof 37af42e470
Upgrade pillow to 8.2.0 (#51897) 2021-06-15 19:14:57 +02:00
Joakim Sørensen 33ac4dba5a
Add httpcore with version 0.13.3 (#51799) 2021-06-13 10:21:26 +02:00
J. Nick Koston b3a67a2dd7
Bump sqlalchemy to 1.4.17 (#51593) 2021-06-08 16:53:51 +02:00
Bram Kragten 65f23c45a8
Update frontend to 20210603.0 (#51442) 2021-06-03 15:41:59 -07:00
Paulus Schoutsen f3b2624be3
Pin jinja (#51434) 2021-06-03 23:12:39 +02:00
Bram Kragten bee89a12ec
Update frontend to 20210601.1 (#51354) 2021-06-01 13:35:13 -07:00
Bram Kragten 94ae8396dd
Update frontend to 20210601.0 (#51329) 2021-06-01 12:38:49 +02:00
Paulus Schoutsen 354dd39f24
Updated frontend to 20210531.1 (#51314) 2021-06-01 01:35:08 +02:00
Pascal Vizeli 3d119fd4ab
Revert "GRPC is fixed, don't need a workaround" (#51289)
This reverts commit 9d174e8a05.
2021-05-31 14:03:26 +02:00
Paulus Schoutsen 7654672dd0
Updated frontend to 20210531.0 (#51281) 2021-05-30 21:04:13 -07:00
J. Nick Koston fb50cf9840
Add network and callback support to SSDP (#51019)
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
Bram Kragten 0fbdce5ca6
Update frontend to 20210528.0 (#51199) 2021-05-28 14:38:01 +02:00
Bram Kragten 42b92748f6
Update frontend to 20210526.0 (#51110) 2021-05-26 09:31:46 -07:00
J. Nick Koston 64661ee2b7
Add network configuration integration (#50874)
Co-authored-by: Ruslan Sayfutdinov <ruslan@sayfutdinov.com>
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-05-26 09:06:30 -07:00
Matt Zimmerman e964c607a3
jinja2.contextfilter decorator renamed to pass_context (#51007)
* jinja2.contextfilter decorator renamed to pass_context

* bump jinja2 dependency
2021-05-24 17:38:37 +02:00