Commit Graph

380 Commits (832184bacd8e991ecf0b688304f068449cc6de2f)

Author SHA1 Message Date
Ville Skyttä 19d25cd901
Change config entry state to an enum (#49654)
* Change config entry state to an enum

* Allow but deprecate EntryState str equality comparison

* Test fixes

* Rename to ConfigEntryState

* Remove str comparability backcompat

* Update new occurrences of strs cropped up during review
2021-05-20 19:19:20 +02:00
Franck Nijhof 8eb27374c6
Clean up connection classes in integrations P-S (#49893) 2021-04-30 21:04:44 -10:00
jjlawren 37e8571fe8
Use header URI in Plex config flow (#49915) 2021-04-30 23:15:59 +02:00
jjlawren 8c311cbaa0
Handle special Plex library sections (#49525) 2021-04-28 19:58:05 +02:00
J. Nick Koston 3f3f77c6e6
Reduce config entry setup/unload boilerplate N-P (#49777) 2021-04-27 20:42:21 +02:00
tkdrob a7393cd8b4
Add selectors to plex services (#49706) 2021-04-26 15:47:25 +02:00
J. Nick Koston 3fa8ffa731
Enable mccabe complexity checks in flake8 (#49616)
Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-04-25 12:38:40 +02:00
tkdrob c3d9aaa896
Clean plex services.yaml (#49535) 2021-04-22 13:41:43 -05:00
Franck Nijhof 055cdc64c0
Add support for IoT class in manifest (#46935) 2021-04-15 10:21:38 +02:00
J. Nick Koston 4cd7f9bd8b
Raise ConfigEntryAuthFailed during setup or coordinator update to start reauth (#48962) 2021-04-09 19:41:29 -10:00
jjlawren 2e32589741
Fix Plex live TV handling (#48953) 2021-04-09 10:38:01 -07:00
jjlawren be71d626c8
Improve Plex device handling (#48369) 2021-03-31 09:37:16 -07:00
jjlawren 7dfe63e06f
Set Plex sensor availability properly (#48546) 2021-03-31 17:02:23 +02:00
jjlawren d62297a28b
Add Plex library count sensors (#48339) 2021-03-31 13:57:16 +02:00
Franck Nijhof 3aed84560f
Merge of nested IF-IF cases - O-R (#48371) 2021-03-27 10:38:57 +01:00
jjlawren e42ca35c94
Bump plexwebsocket to 0.0.13 (#48330) 2021-03-25 19:12:12 +01:00
jjlawren 20485eb132
Bump plexapi to 4.5.1 (#48307) 2021-03-25 08:41:21 +01:00
jjlawren 879c82ebf8
Improve Plex GDM client connections (#48272) 2021-03-24 07:57:45 +01:00
jjlawren 195d4de6cd
Bump plexapi to 4.5.0 (#48264) 2021-03-23 22:47:00 +01:00
Erik Montnemery c900e3030b
Migrate integrations n-q to extend SensorEntity (#48214) 2021-03-22 19:46:46 +01:00
jjlawren e5893ca42c
Trigger Plex GDM scans regularly (#48041) 2021-03-21 22:14:09 -07:00
J. Nick Koston c820dd4cb5
Have pylint warn when user visible log messages do not start with capital letter or end with a period (#48064)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-03-19 09:26:36 -05:00
HomeAssistant Azure f625e324dd [ci skip] Translation update 2021-03-18 00:07:07 +00:00
HomeAssistant Azure 4306c8fbb4 [ci skip] Translation update 2021-03-17 00:03:55 +00:00
HomeAssistant Azure c11b85af2f [ci skip] Translation update 2021-03-16 00:04:36 +00:00
jjlawren daab9f9810
Bump plexapi to 4.4.1 (#47766) 2021-03-12 00:35:11 +01:00
Erik Montnemery 14ff6d4d1f
Update integrations p-s to override extra_state_attributes() (#47759) 2021-03-11 21:23:20 +01:00
Ville Skyttä dc880118a4
Lint suppression cleanups (#47248)
* Unused pylint suppression cleanups

* Remove outdated pylint bug references

* Add flake8-noqa config and note to run it every now and then

* Add codes to noqa's

* Unused noqa cleanups
2021-03-02 09:02:04 +01:00
HomeAssistant Azure 44ed6cda40 [ci skip] Translation update 2021-03-01 00:09:01 +00:00
jjlawren ba51ada494
Bump plexapi to 4.4.0 (#47007) 2021-02-24 21:00:58 +01:00
jjlawren 2f1dba74d1
Use Plex server URL as config entry title (#47010) 2021-02-24 20:57:02 +01:00
HomeAssistant Azure 9159f54900 [ci skip] Translation update 2021-02-24 00:04:14 +00:00
jjlawren 425d56d024
Fix Plex showing removed shared users (#46971) 2021-02-23 23:36:46 +01:00
jjlawren 272e975a52
Fix Plex handling of clips (#46667) 2021-02-23 22:38:24 +01:00
HomeAssistant Azure 0cb1f61deb [ci skip] Translation update 2021-02-21 00:07:04 +00:00
HomeAssistant Azure 1bb535aa67 [ci skip] Translation update 2021-02-16 00:03:57 +00:00
Franck Nijhof bc1daf1802
None optional hass typing in FlowHandler (#46462)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-02-13 13:21:37 +01:00
Paulus Schoutsen 959ed6d077 Update translations 2021-02-03 11:46:49 +01:00
jjlawren 048f36c77e
Bump plexapi to 3.4.1 (#45878) 2021-02-03 08:44:34 +01:00
jjlawren d7e0391e03
Allow Plex playback using provided playqueue ID (#45580) 2021-01-28 17:21:31 +01:00
jjlawren 76be67fa64
Bump plexapi to 4.3.0 (#45567) 2021-01-26 17:25:45 +01:00
jjlawren 1f66457a34
Separate Plex/Sonos cross-integration tests (#45370) 2021-01-21 11:22:19 +01:00
jjlawren 411cc6542c
Move Plex->Sonos playback to built-in service (#45066)
* Move Plex->Sonos playback service from integration to platform

* Test against 'native' Plex media_players

* Add Plex to Sonos after_dependencies

* Remove circular dependency

* Raise exceptions in failed service calls

* Add test to forward service call from Sonos

* Additional Sonos->Plex tests

* Fix docstring
2021-01-13 15:24:44 +01:00
jjlawren 0426b211f6
Rewrite Plex tests to use mocked payloads (#44044) 2021-01-07 19:56:52 +01:00
jjlawren d3d66c2e27
Fix Plex media summary attribute (#44863) 2021-01-06 14:12:19 +01:00
HomeAssistant Azure f3cabe97e0 [ci skip] Translation update 2020-12-21 00:04:09 +00:00
HomeAssistant Azure 9c63fbfcb1 [ci skip] Translation update 2020-12-07 00:04:18 +00:00
jjlawren f2f935506e
Use Plex websocket payloads to reduce overhead (#42332)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2020-12-02 19:00:13 +01:00
jjlawren 7c0e148b59
Proxy Plex media browser images (#43111)
Co-authored-by: rajlaud <50647620+rajlaud@users.noreply.github.com>
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2020-11-27 22:14:19 +01:00
Lasath Fernando 86cf184903
Add seek support to plex media players (#43420)
Turns out plexapi lib already supports this, so we just need to
pass through the command.
2020-11-22 14:05:15 +01:00
Franck Nijhof a092b4c204
Ensure Plex content_id in play_on_sonos service is a string (#43483) 2020-11-21 16:32:55 +01:00
HomeAssistant Azure a1306059af [ci skip] Translation update 2020-11-19 00:11:12 +00:00
HomeAssistant Azure 8a0907acf9 [ci skip] Translation update 2020-11-12 00:10:58 +00:00
jjlawren 39cdf61c2d
Fix Plex auth issues by setting header (#43081) 2020-11-11 09:40:25 +01:00
HomeAssistant Azure 4b9ba79584 [ci skip] Translation update 2020-11-11 00:10:27 +00:00
HomeAssistant Azure 57c6bb96f4 [ci skip] Translation update 2020-11-07 00:04:02 +00:00
HomeAssistant Azure e972686a13 [ci skip] Translation update 2020-11-06 00:04:57 +00:00
HomeAssistant Azure 9298fec345 [ci skip] Translation update 2020-11-05 00:10:11 +00:00
HomeAssistant Azure aab0ff2ea5 [ci skip] Translation update 2020-11-03 00:04:39 +00:00
jjlawren e5dee965f1
Bump plexapi to 4.2.0 (#42727) 2020-11-02 15:37:41 +01:00
HomeAssistant Azure abe6f552f6 [ci skip] Translation update 2020-11-01 00:04:54 +00:00
HomeAssistant Azure b9d04b9304 [ci skip] Translation update 2020-10-30 00:02:45 +00:00
HomeAssistant Azure 026e0063fe [ci skip] Translation update 2020-10-29 00:09:16 +00:00
HomeAssistant Azure c2a9f2ae52 [ci skip] Translation update 2020-10-26 00:03:36 +00:00
HomeAssistant Azure b102ad731f [ci skip] Translation update 2020-10-22 00:09:52 +00:00
HomeAssistant Azure 81296b2b70 [ci skip] Translation update 2020-10-20 00:08:00 +00:00
jjlawren e6e4c9cf59
Allow Cast to play Plex media (#41869)
* Allow Cast to play Plex media

* Add Plex to after_dependencies, add missing constant

* Extract function from Sonos service to allow media lookups

* Move to non-async method

* Check if media_id exists

* Add test to make codecov happy
2020-10-19 16:34:22 -05:00
HomeAssistant Azure 1a03bbda5a [ci skip] Translation update 2020-10-18 00:03:28 +00:00
HomeAssistant Azure 994ae09f69 [ci skip] Translation update 2020-10-15 00:03:50 +00:00
jjlawren 4e8012fcea
Remove unnecessary check in Plex client scanning (#41844) 2020-10-14 22:01:06 +02:00
jjlawren c63c253b7f
Discover Plex clients using GDM (#39053) 2020-10-14 15:46:52 +02:00
HomeAssistant Azure ba55cb8955 [ci skip] Translation update 2020-10-14 00:04:41 +00:00
HomeAssistant Azure 1417a4161f [ci skip] Translation update 2020-10-13 00:03:24 +00:00
HomeAssistant Azure f787289ea0 [ci skip] Translation update 2020-10-12 00:03:31 +00:00
HomeAssistant Azure 80522f1bdc [ci skip] Translation update 2020-10-11 00:03:37 +00:00
HomeAssistant Azure 6ae12c3faf [ci skip] Translation update 2020-10-10 00:05:05 +00:00
HomeAssistant Azure 29aea5a66c [ci skip] Translation update 2020-10-09 00:04:33 +00:00
HomeAssistant Azure d73d36d0cd [ci skip] Translation update 2020-10-08 00:06:03 +00:00
HomeAssistant Azure 486c0b644a [ci skip] Translation update 2020-10-07 00:06:20 +00:00
SNoof85 883c9b5e18
Add reauth_successful to base strings (#41316) 2020-10-06 11:29:53 +02:00
HomeAssistant Azure bcfa4ac959 [ci skip] Translation update 2020-10-06 00:08:09 +00:00
springstan 038c05d0ee
Return attribute dict directly without temporary variable (#41206) 2020-10-05 12:51:48 +02:00
HomeAssistant Azure 8d1d585b40 [ci skip] Translation update 2020-10-05 00:04:23 +00:00
HomeAssistant Azure f8c2d877aa [ci skip] Translation update 2020-10-04 00:05:05 +00:00
springstan c00915a6a7
Add ssl and verify_ssl to base strings for config flows (#40944)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2020-10-03 16:06:45 +02:00
springstan 064a453604
Add already_in_progress to base strings for config flows (#40961) 2020-10-03 15:49:09 +02:00
HomeAssistant Azure 81c6d48cb4 [ci skip] Translation update 2020-10-02 00:05:51 +00:00
jjlawren 8c4b571901
Plex websocket callback async cleanup (#40992) 2020-10-01 21:56:15 +02:00
jjlawren b3464c5087
Remove unnecessary instance attribute in Plex reauth config flow (#41000)
* Avoid unnecessary instance attribute

* Don't need to enrich existing entry data
2020-10-01 21:38:57 +02:00
jjlawren cf785b86db
Minor fixes for Plex media browser (#39878) 2020-10-01 19:55:11 +02:00
jjlawren be9ff3bd66
Accept new Plex websocket callback payloads (#40773) 2020-10-01 09:57:45 +02:00
HomeAssistant Azure 8d0f1e7db2 [ci skip] Translation update 2020-09-30 00:04:43 +00:00
HomeAssistant Azure 704ffe391a [ci skip] Translation update 2020-09-29 00:03:20 +00:00
jjlawren 3596eb39f2
Add support to reauthorize expired Plex tokens (#40469) 2020-09-28 16:14:54 +02:00
HomeAssistant Azure 2b00d28af9 [ci skip] Translation update 2020-09-27 00:06:49 +00:00
jjlawren d694c1f548
Bump plexapi to 4.1.1 (#40512) 2020-09-23 19:26:05 -05:00
jjlawren 4c0f075d6a
Fix children_media_class for special folders (#39974) 2020-09-12 15:54:00 +02:00
Martin Hjelmare e96fed20c8
Add children media class (#39902)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2020-09-11 13:08:13 +02:00
Martin Hjelmare 586d7eaba6
Add media class browse media attribute (#39770) 2020-09-08 16:42:01 +02:00
HomeAssistant Azure 07d5af1969 [ci skip] Translation update 2020-09-08 00:04:13 +00:00