Plex Problems

Getting many logs entries for Plex devices like this one:

2019-03-09 19:50:17 ERROR (MainThread) [frontend.js.latest.201902200] https://HA-url/frontend_latest/c44e5d59e2d7eb01278d.chunk.js:2963:1474 Uncaught TypeError: Cannot read property ‘isOff’ of undefined
2019-03-09 20:00:24 ERROR (MainThread) [homeassistant.helpers.entity] Update for media_player.galaxy_s9 fails
Traceback (most recent call last):
File “/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/homeassistant/helpers/entity.py”, line 221, in async_update_ha_state
await self.async_device_update()
File “/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/homeassistant/helpers/entity.py”, line 349, in async_device_update
await self.hass.async_add_executor_job(self.update)
File “/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/concurrent/futures/thread.py”, line 56, in run
result = self.fn(*self.args, **self.kwargs)
File “/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/homeassistant/components/media_player/plex.py”, line 557, in update
self.update_devices(no_throttle=True)
File “/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/homeassistant/util/init.py”, line 224, in wrapper
result = method(*args, **kwargs)
File “/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/homeassistant/util/init.py”, line 224, in wrapper
result = method(*args, **kwargs)
File “/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/homeassistant/components/media_player/plex.py”, line 175, in update_devices
plex_clients[device.machineIdentifier].refresh(device, None)
File “/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/homeassistant/components/media_player/plex.py”, line 425, in refresh
if self._session.section() is not None else ‘’
File “/Users/Pinuccio/.homeassistant/deps/lib/python/site-packages/plexapi/base.py”, line 405, in section
return self._server.library.sectionByID(self.librarySectionID)
File “/Users/Pinuccio/.homeassistant/deps/lib/python/site-packages/plexapi/library.py”, line 65, in sectionByID
return self._sectionsByID[sectionID]
KeyError: None

This entries seems to repeat until log is getting huge and HA is not more accessible via WEB.

Had to delete plex-entry in configuration (discovery is off)

You left your HA url in the log, I recommend you remove it