Plex is suddenly not reporting status when playing back. I can see my sensor in states, but nothing happens when I play something back. Errors in logs:
Update for sensor.plex fails
7:38 PM components/sensor/plex.py (ERROR)
Update for sensor.plex fails
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 201, in async_update_ha_state
yield from self.async_device_update()
File "/usr/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 308, in async_device_update
yield from self.hass.async_add_job(self.update)
File "/usr/lib/python3.6/asyncio/futures.py", line 332, in __iter__
yield self # This tells Task to wait for completion.
File "/usr/lib/python3.6/asyncio/tasks.py", line 250, in _wakeup
future.result()
File "/usr/lib/python3.6/asyncio/futures.py", line 245, in result
raise self._exception
File "/usr/lib/python3.6/concurrent/futures/thread.py", line 56, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/lib/python3.6/site-packages/homeassistant/util/__init__.py", line 306, in wrapper
result = method(*args, **kwargs)
File "/usr/lib/python3.6/site-packages/homeassistant/components/sensor/plex.py", line 118, in update
user = sess.usernames[0] if sess.usernames is not None else ""
TypeError: '_NA' object does not support indexing
It was working fine up until today. I went in and updated my plex token with no change. I also could have sworn there was a plex.py somewhere in my config files and now I’m not seeing it, only plex.conf.