Commit graph

81 commits

Author SHA1 Message Date
Franck Nijhof
3e85a29b86
Move overlapping pylint rules to ruff, disable mypy overlap () 2023-06-27 17:42:46 +02:00
epenet
469dbec089
Add type hints to plex data ()
* Add type hints to plex data

* Rename method
2023-03-17 22:14:24 +01:00
Franck Nijhof
94755a5773
String formatting and max line length - Part 4 ()
Co-authored-by: jjlawren <jjlawren@users.noreply.github.com>
2022-12-23 13:27:27 +01:00
epenet
5c8e8e4860
Use new media player enums () 2022-09-12 20:06:27 +02:00
jjlawren
ea88f229a3
Bump plexapi to 4.12.1 () 2022-08-07 13:41:12 -04:00
jjlawren
b34da1294c
Improve Plex media search failure feedback () 2022-03-17 13:57:22 -07:00
jjlawren
df9e92b4b8
Add log message when Plex library section not found () 2022-02-22 10:35:19 +01:00
jjlawren
34d0f2ffd7
Add "Recommended" and radio station support to Plex media browser () 2022-01-25 13:02:23 -08:00
jjlawren
10195dc700
Improve server selection for Plex config flows () 2022-01-05 22:20:33 +01:00
jjlawren
2d6fa5c453
Fix updating sensor on unlinked Plex server () 2021-10-25 23:36:26 +02:00
jjlawren
0600a21e02
Allow advanced Plex play_media search options () 2021-10-24 11:22:16 -10:00
Marc Mueller
4513ee4ea5
Use assignment expressions 12 () 2021-10-20 14:34:08 -07:00
jjlawren
d5fe7e0e5a
Fallback to try all known Plex servers if none marked present () 2021-08-24 12:05:24 +02:00
Marc Mueller
0815eede4b
Replace lists with tuples (2) () 2021-07-30 01:20:03 +02:00
jjlawren
e929774481
Add warning during playback if Plex token missing () 2021-06-14 20:09:27 +02:00
J. Nick Koston
3fa8ffa731
Enable mccabe complexity checks in flake8 ()
Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-04-25 12:38:40 +02:00
Franck Nijhof
3aed84560f
Merge of nested IF-IF cases - O-R () 2021-03-27 10:38:57 +01:00
jjlawren
e42ca35c94
Bump plexwebsocket to 0.0.13 () 2021-03-25 19:12:12 +01:00
jjlawren
879c82ebf8
Improve Plex GDM client connections () 2021-03-24 07:57:45 +01:00
jjlawren
e5893ca42c
Trigger Plex GDM scans regularly () 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 ()
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-03-19 09:26:36 -05:00
Ville Skyttä
dc880118a4
Lint suppression cleanups ()
* 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
jjlawren
425d56d024
Fix Plex showing removed shared users () 2021-02-23 23:36:46 +01:00
jjlawren
d7e0391e03
Allow Plex playback using provided playqueue ID () 2021-01-28 17:21:31 +01:00
jjlawren
0426b211f6
Rewrite Plex tests to use mocked payloads () 2021-01-07 19:56:52 +01:00
jjlawren
f2f935506e
Use Plex websocket payloads to reduce overhead ()
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2020-12-02 19:00:13 +01:00
jjlawren
7c0e148b59
Proxy Plex media browser images ()
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
jjlawren
4e8012fcea
Remove unnecessary check in Plex client scanning () 2020-10-14 22:01:06 +02:00
jjlawren
c63c253b7f
Discover Plex clients using GDM () 2020-10-14 15:46:52 +02:00
jjlawren
3596eb39f2
Add support to reauthorize expired Plex tokens () 2020-09-28 16:14:54 +02:00
jjlawren
dd7f282723
Add new Plex movie lookup method for media_player.play_media () 2020-09-04 11:32:36 +02:00
Ville Skyttä
1bf2c4d976
Upgrade pylint to 2.6.0 () 2020-08-29 07:59:24 +02:00
Franck Nijhof
1c2ebdf307
Upgrade black to 20.8b1 () 2020-08-27 13:56:20 +02:00
jjlawren
6d95ee7a00
Websocket media browsing for Plex ()
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2020-08-24 12:41:01 +02:00
jjlawren
1d987b4846
Ignore remote Plex clients during plex.tv lookup () 2020-07-29 20:56:32 +02:00
jjlawren
ba356c41e0
Fix Plex client controls when connected via plex.tv resource () 2020-07-06 15:16:41 -07:00
Franck Nijhof
53545c984b
Log lines do not end with a full stop () 2020-07-05 23:04:19 +02:00
jjlawren
fe5bf96e5d
Catch additional exception for Plex account login failures () 2020-06-26 10:30:44 -07:00
jjlawren
40573bf393
Plex tests cleanup and additions () 2020-06-25 23:24:58 -07:00
jjlawren
fd1a8dd96c
Fix Plex when using local tokenless authentication () 2020-06-25 17:10:40 -07:00
jjlawren
9d40ae96b5
Set Plex media_player discovery source as an attribute () 2020-06-22 14:48:40 +02:00
jjlawren
d5cc3208af
Discover controllable Plex clients using plex.tv () 2020-06-17 12:04:47 -07:00
jjlawren
9aac8482d5
Remove deprecated Plex YAML config () 2020-06-03 09:20:21 -07:00
Quentame
1855c91988
Use CONF_CLIENT_ID & CONF_CLIENT_SECRET from homeassistant.const ()
* Use CONF_CLIENT_ID & CONF_CLIENT_SECRET from homeassistant.const

* Fix pylint

* Use in tests

* Search for "client_id"

* Fix tests

* Fix test

* Fix test
2020-05-30 17:27:20 +02:00
jjlawren
4e74fae615
Playback on Sonos speakers from Plex integration ()
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2020-05-27 15:36:08 -07:00
jjlawren
59c112a3f2
Decouple media lookup from Plex play_media service ()
* Decouple media lookup from play_media service

* More explicit input/search validation, cleanup, more tests

* Minor cleanup

* Normalize media_type string in lookup call

* Move key lookup, add tests via service calls

* Always allow play_media service calls

* No need to pass arguments to nested functions
2020-05-26 14:39:56 -05:00
jjlawren
ad419911bc
Add config option to ignore Plex Web clients () 2020-05-08 09:49:15 -07:00
jjlawren
dfe2a457c0
Handle config with a limited Plex account () 2020-05-06 18:46:00 -07:00
jjlawren
740d9c575e
Add manual config flow for Plex () 2020-05-05 15:42:21 -07:00
jjlawren
c582911879
Refactor Plex device/session updates () 2020-04-23 18:12:39 -07:00