Skip to content

Conversation

@jjlawren
Copy link
Collaborator

As seen in #515 there are warnings similar to this printed when a plain boolean check is made on an ElementTree object:

/srv/homeassistant-3.7/lib/python3.7/site-packages/plexapi/client.py:72: FutureWarning: The behavior of this method will change in future versions.  Use specific 'len(elem)' or 'elem is not None' test instead.
  if not any([data, initpath, baseurl, token]):

This PR makes more explicit checks against None to avoid these warnings.

@Hellowlol Hellowlol merged commit 65fa780 into pushingkarmaorg:master Jul 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants