17-05-04 11:25:43 ERROR (MainThread) [homeassistant.components.media_player] Error while setting up platform ps4
Traceback (most recent call last):
File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py", line 153, in _async_setup_platform
entity_platform.schedule_add_entities, discovery_info
File "/usr/lib/python3.4/asyncio/futures.py", line 388, in __iter__
yield self # This tells Task to wait for completion.
File "/usr/lib/python3.4/asyncio/tasks.py", line 286, in _wakeup
value = future.result()
File "/usr/lib/python3.4/asyncio/futures.py", line 277, in result
raise self._exception
File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run
result = self.fn(*self.args, **self.kwargs)
File "/home/homeassistant/.homeassistant/custom_components/media_player/ps4.py", line 85, in setup_platform
ps4 = PS4Waker(host, port, credentials, games_filename)
File "/home/homeassistant/.homeassistant/custom_components/media_player/ps4.py", line 242, in __init__
self._load_games()
File "/home/homeassistant/.homeassistant/custom_components/media_player/ps4.py", line 273, in _load_games
self.games = json.load(f)
File "/usr/lib/python3.4/json/__init__.py", line 268, in load
parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
File "/usr/lib/python3.4/json/__init__.py", line 318, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3.4/json/decoder.py", line 343, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.4/json/decoder.py", line 361, in raw_decode
raise ValueError(errmsg("Expecting value", s, err.value)) from None
ValueError: Expecting value: line 1 column 1 (char 0)
Any thoughts? Have the ps4.py
in custom_components/media_player
directory
Also have .ps4-wake.credentials.json
in the default config directory along with ps4-games.json
file. Is there anything that i need to alter in the ps4 file?
Note: ps4-waker
has been installed and working prior to attempting this.
Thanks for any help you can provide