hass-core/homeassistant
Ryan McLean 41fa8cc8f2 Plex refactor Part 1 - Update plexapi to 3.0.3 (#9988)
* Fix: Last Played Media Title in plex would stay even when player was idle/off
     Primary Fix is in the "if self._device" portion.
     code in "if self._session" is a catch all but i'm not 100% if it is needed.

* Fixed lint issues with previous commit

* 1st Pass at refactoring plex refresh
Moved _media** into clearMedia() which is called in _init_ and
at start of refresh.

Removed redunant _media_* = None entries

Grouped TV Show and Music under single if rather than testing
seperately for now.

* Fixed invalid name for _clearMedia()
Removed another media_* = None entry

* Removed print() statements used for debug

* Removed unneeded "if" statement

* Changes
* Updated Requests to 2.18.4
* Updated plexapi to 3.0.3
* Removed function to convert_NA_to_None
* Removed function get_thumb_url

Type changes
* _session.player is now a list players
* na_type deprecated and to be removed
* plexapi has change na to None

Known Issues:
* Player controls currently broken
* Last location (library) stays while player idle

* Username is now Usernames and a list

* Fix for broken controls

* Removed errant print statement

* Removed depecrated na_type

* Updated Plex Sensor to use plexapi 3.0.3
Added support for Token to be used in sensor

Known Issues:
Username and Password broken for Plex Sensor use Token instead for now

* removed TODOs

* Fixes for private access violations

* Removed need for _local_client_fix

* Removed unused import and fixed parens
2017-10-25 11:42:13 +02:00
..
components Plex refactor Part 1 - Update plexapi to 3.0.3 (#9988) 2017-10-25 11:42:13 +02:00
helpers Consolidate frontend (#9915) 2017-10-24 19:36:27 -07:00
scripts Do not auto-install credstash (#9844) 2017-10-12 23:57:45 -07:00
util Do not auto-install credstash (#9844) 2017-10-12 23:57:45 -07:00
__init__.py Fix PEP257 issues 2016-03-08 00:06:04 +01:00
__main__.py Added log-file command line flag (#9422) 2017-09-13 21:22:42 -07:00
bootstrap.py Fix spelling error (#10009) 2017-10-21 21:56:19 +02:00
config.py Fix load of components without any config from packages (#9901) 2017-10-17 09:59:33 +02:00
const.py Bump dev to 0.57.0.dev0 (#10010) 2017-10-21 13:12:57 -07:00
core.py RFC: Use bind_hass for helpers (#9745) 2017-10-08 08:17:54 -07:00
exceptions.py EntityComponent to retry platforms that are not ready yet (#8209) 2017-06-26 09:41:48 -07:00
loader.py RFC: Use bind_hass for helpers (#9745) 2017-10-08 08:17:54 -07:00
monkey_patch.py Make monkey patch work in Python 3.6 (#7848) 2017-06-01 23:23:39 -07:00
package_constraints.txt Update requests requirement (#9876) 2017-10-19 19:24:49 -07:00
remote.py Fix pylint 1.7.2 no-else-return issues (#8361) 2017-07-05 23:30:01 -07:00
setup.py Fix check for running inside venv (#8481) 2017-07-15 07:25:02 -07:00