mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 05:37:44 +00:00
fix 2862 (#2868)
This commit is contained in:
parent
85d632c272
commit
9bfac590f6
@ -96,7 +96,7 @@ class PlexSensor(Entity):
|
||||
sessions = self._server.sessions()
|
||||
now_playing = []
|
||||
for sess in sessions:
|
||||
user = sess.user.title if sess.user is not self._na_type else ""
|
||||
user = sess.username if sess.username is not self._na_type else ""
|
||||
title = sess.title if sess.title is not self._na_type else ""
|
||||
year = sess.year if sess.year is not self._na_type else ""
|
||||
now_playing.append((user, "{0} ({1})".format(title, year)))
|
||||
|
Loading…
x
Reference in New Issue
Block a user