Commit graph

90 commits

Author SHA1 Message Date
Marc Mueller
c41962455e
Use PEP 695 for decorator typing (2) (#117639) 2024-05-17 16:31:01 +02:00
Marc Mueller
988c71ecc5
Add empty line after module docstring [n-q] (#112702) 2024-03-08 15:04:07 +01:00
Ville Skyttä
24b1e01d71
Update Ruff to 0.1.8, avoid linter/formatter conflicts (#106080)
* Disable Ruff rules that may conflict with the formatter

* Upgrade Ruff to 0.1.8

- https://github.com/astral-sh/ruff/releases/tag/v0.1.7
- https://github.com/astral-sh/ruff/releases/tag/v0.1.8

* Format with Ruff 0.1.8
2023-12-20 23:55:09 +01:00
Joost Lekkerkerker
40a3d97230
Use shorthand attributes in Plex (#99769)
Co-authored-by: Robert Resch <robert@resch.dev>
2023-09-07 13:55:16 +02:00
Erik Montnemery
045c327928
Move DeviceInfo from entity to device registry (#98149)
* Move DeviceInfo from entity to device registry

* Update integrations
2023-08-10 22:04:26 -04:00
Erik Montnemery
334dacc322
Change Entity.name default to UNDEFINED (#94574)
* Change Entity.name default to UNDEFINED

* Update typing

* Update Pylint plugin

* Update TTS test
2023-06-15 11:09:53 +02:00
epenet
f56bf134d2
Improve browse_media type hints in media player (#90060)
* Improve browse_media type hints in media player

* Adjust components

* Adjust base entity
2023-03-24 21:49:12 -07:00
epenet
4836404288
Improve media_player type hints in integrations (#90029)
Fix some media_player type hints
2023-03-21 11:10:12 +01:00
epenet
469dbec089
Add type hints to plex data (#89221)
* Add type hints to plex data

* Rename method
2023-03-17 22:14:24 +01:00
Marc Mueller
45b4b0e990
Import ParamSpec from typing [Py310] (#86413)
* Import ParamSpec from typing [Py310]

* Update additional imports
2023-01-23 07:28:43 +01:00
epenet
18e30e7c06
Adjust type hints for MediaPlayerEntityFeature (#82258) 2022-11-17 13:58:34 +01:00
Marc Mueller
e8156adb13
Update mypy to 0.981 (#79115) 2022-09-26 16:10:06 -04:00
epenet
75e52ef389
Use DOMAIN constant in plex (#78764) 2022-09-19 15:08:40 +02:00
epenet
52b5e1779f
Use new media player enums [p] (#78058) 2022-09-08 22:54:43 +02:00
epenet
474844744b
Improve entity type hints [p] (#77871) 2022-09-06 09:51:33 +02:00
epenet
14baaf4b67
Remove plex from mypy ignore list (#74984) 2022-07-11 20:02:44 +02:00
epenet
64b0dd1e7a
Cleanup deprecated async_get_registry in plex (#72077) 2022-05-18 14:09:25 +02:00
Marc Mueller
9af8cd030a
Type plex session decorator (#70991) 2022-04-28 21:06:05 +02:00
epenet
80a857c6c2
Use EntityFeature enum in components (p**) (#69434) 2022-04-07 15:03:42 +02:00
jjlawren
653305b998
Support multiple Plex servers in media browser (#68321) 2022-03-21 15:48:44 -07:00
jjlawren
b34da1294c
Improve Plex media search failure feedback (#67493) 2022-03-17 13:57:22 -07:00
jjlawren
69ce03465d
Proxy Plex thumbnail images in media browser (#66702)
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2022-02-19 20:25:33 +01:00
jjlawren
e17f1ea577
Support Plex in Sonos media browser (#64951)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2022-01-26 10:40:47 -08:00
jjlawren
34d0f2ffd7
Add "Recommended" and radio station support to Plex media browser (#64057) 2022-01-25 13:02:23 -08:00
epenet
ed5e1af10a
Add type hints to media_player (part 2) (#64006) 2022-01-13 10:43:52 +01:00
epenet
7185e1140d
Add setup type hints to plex (#62883)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-29 18:05:56 +01:00
jjlawren
d64e7b1dc4
Support Plex resuming and playback offset (#61468) 2021-12-19 22:33:36 -06:00
Ville Skyttä
39691faccc
Use DeviceEntryType in non-typechecked code too (#58646) 2021-11-23 10:04:33 +01:00
Marc Mueller
4c68662612
Use assignment expressions 34 (#58823) 2021-10-31 19:01:16 +01:00
jjlawren
0600a21e02
Allow advanced Plex play_media search options (#56226) 2021-10-24 11:22:16 -10:00
epenet
176ed4f7ba
Use DeviceInfo on components with via_device (I-T) (#58212)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-10-22 12:31:12 +02:00
Marc Mueller
0815eede4b
Replace lists with tuples (2) (#53685) 2021-07-30 01:20:03 +02:00
Marc Mueller
f6b162bc39
Add pylint CodeStyle extension (#53147) 2021-07-19 06:57:06 -07:00
jjlawren
2970931d8d
Use entity class attributes for Plex (#52617) 2021-07-12 23:01:58 +02:00
jjlawren
e929774481
Add warning during playback if Plex token missing (#51853) 2021-06-14 20:09:27 +02:00
jjlawren
be71d626c8
Improve Plex device handling (#48369) 2021-03-31 09:37:16 -07:00
Erik Montnemery
14ff6d4d1f
Update integrations p-s to override extra_state_attributes() (#47759) 2021-03-11 21:23:20 +01:00
jjlawren
d7e0391e03
Allow Plex playback using provided playqueue ID (#45580) 2021-01-28 17:21:31 +01:00
jjlawren
d3d66c2e27
Fix Plex media summary attribute (#44863) 2021-01-06 14:12:19 +01: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
springstan
038c05d0ee
Return attribute dict directly without temporary variable (#41206) 2020-10-05 12:51:48 +02:00
jjlawren
6d95ee7a00
Websocket media browsing for Plex (#35590)
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
e940811a8b
Clean up Plex clip handling (#38500) 2020-08-03 12:41:24 +02:00
jjlawren
9d40ae96b5
Set Plex media_player discovery source as an attribute (#36884) 2020-06-22 14:48:40 +02:00
jjlawren
d445c16697
Handle Plex Live TV sessions (#36919) 2020-06-19 17:12:47 +02:00
jjlawren
59c112a3f2
Decouple media lookup from Plex play_media service (#35663)
* 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
Erik Montnemery
62bc02fdda
Rename MediaPlayerDevice to MediaPlayerEntity (#34592) 2020-04-25 18:00:57 +02:00
jjlawren
f922128a14
Add Plex play_media logging and troubleshooting tools (#34412) 2020-04-23 12:42:17 -07:00