1
0
mirror of https://github.com/home-assistant/core.git synced 2025-05-08 07:59:18 +00:00

28 Commits

Author SHA1 Message Date
Marc Mueller
921430d497
Import Generator from collections.abc (3) () 2024-07-01 12:09:11 +02:00
epenet
3e9d25f81d
Add missing argument type hints to component tests () 2024-06-14 09:26:46 +02:00
epenet
fb1b0058ee
Fix consider-using-tuple pylint warnings in component tests ()
* Fix consider-using-tuple pylint warnings in component tests

* Apply su

Co-authored-by: Michael <35783820+mib1185@users.noreply.github.com>

---------

Co-authored-by: Michael <35783820+mib1185@users.noreply.github.com>
2024-06-12 15:50:27 +02:00
Marc Mueller
837ee7c4fb
Import Generator from typing_extensions (4) () 2024-06-06 17:41:37 +02:00
epenet
242ee04642
Improve type hints in tests (i-p) () 2024-05-30 08:47:08 +02:00
Erik Montnemery
db8597a742
Reduce scope of JSON/XML test fixtures () 2024-04-25 19:12:36 -05:00
Sid
0d66d298ec
Enable Ruff RET504 ()
* Enable Ruff RET504

* fix test

* Use noqa instead of cast

* fix sonos RET504

---------

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2024-04-06 11:07:37 +02:00
Marc Mueller
1722e23df8
Add empty line after module docstring [tests l-p] () 2024-03-08 14:55:15 +01:00
jjlawren
f116e83b62
Add update entity for Plex Media Server () 2023-10-11 13:06:10 +02:00
jjlawren
a1d632c5d1
Bump plexapi to 4.15.3 ()
* Bump plexapi to 4.15.3

* Update tests for updated account endpoint

* Update tests for updated resources endpoint

* Switch to non-web client fixture

* Set __qualname__ attribute for new library behavior
2023-09-29 23:04:00 -04:00
epenet
0c65af93af
Split reauth tests in plex () 2023-03-06 10:02:32 +01:00
J. Nick Koston
4a5679db08
Prevent config entries from being reloaded concurrently ()
* Prevent config entries being reloaded concurrently

- Fixes Config entry has already been setup when
  two places try to reload the config entry at the
  same time.

- This comes up quite a bit:
  https://github.com/home-assistant/core/issues?q=is%3Aissue+sort%3Aupdated-desc+%22Config+entry+has+already+been+setup%22+is%3Aclosed

* Make sure plex creates mocks in the event loop

* drop reload_lock, already inherits
2022-05-28 10:49:55 +02: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
2ff1fc83bc
Add latest added media as Plex library sensor attribute () 2021-09-29 17:11:53 -07:00
jjlawren
d5fe7e0e5a
Fallback to try all known Plex servers if none marked present () 2021-08-24 12:05:24 +02:00
jjlawren
8c311cbaa0
Handle special Plex library sections () 2021-04-28 19:58:05 +02:00
jjlawren
d62297a28b
Add Plex library count sensors () 2021-03-31 13:57:16 +02:00
jjlawren
195d4de6cd
Bump plexapi to 4.5.0 () 2021-03-23 22:47:00 +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
1f66457a34
Separate Plex/Sonos cross-integration tests () 2021-01-21 11:22:19 +01:00
jjlawren
411cc6542c
Move Plex->Sonos playback to built-in service ()
* 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 () 2021-01-07 19:56:52 +01:00
Franck Nijhof
65cf2fcb6f
Drop asynctest () 2021-01-01 22:31:56 +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
c63c253b7f
Discover Plex clients using GDM () 2020-10-14 15:46:52 +02:00
jjlawren
df9634a41f
Refactor Plex tests using fixtures ()
* Refactor Plex tests using fixtures

* Avoid unnecessary coroutine declaration
2020-09-22 22:14:41 -05:00