Could someone please advise why I get the following error;
enigma: Error on device update!
Traceback (most recent call last):
File “/config/custom_components/media_player/enigma.py”, line 155, in request_call
return self._opener.open(uri, timeout=self._timeout).read()
File “/usr/local/lib/python3.6/urllib/request.py”, line 532, in open
response = meth(req, response)
File “/usr/local/lib/python3.6/urllib/request.py”, line 642, in http_response
‘http’, request, response, code, msg, hdrs)
File “/usr/local/lib/python3.6/urllib/request.py”, line 570, in error
return self._call_chain(*args)
File “/usr/local/lib/python3.6/urllib/request.py”, line 504, in _call_chain
result = func(*args)
File “/usr/local/lib/python3.6/urllib/request.py”, line 650, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 400: Bad Request
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/usr/local/lib/python3.6/site-packages/homeassistant/helpers/entity_platform.py”, line 248, in _async_add_entity
await entity.async_device_update(warning=False)
File “/usr/local/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 “/usr/local/lib/python3.6/concurrent/futures/thread.py”, line 56, in run
result = self.fn(*self.args, **self.kwargs)
File “/usr/local/lib/python3.6/site-packages/homeassistant/util/init.py”, line 324, in wrapper
result = method(*args, **kwargs)
File “/config/custom_components/media_player/enigma.py”, line 206, in update
xml = self.request_call(’/web/epgservicenow?sRef=’ + reference)
File “/config/custom_components/media_player/enigma.py”, line 159, in request_call
HTTPError.code)
AttributeError: type object ‘HTTPError’ has no attribute ‘code’
My configuration is set as;
enigma:
devices:
- host: 192.168.1.29
port: 80
name: Zgemma
timeout: 20
username: “”
password: “”
picon: picon
notify:
- platform: enigma
host: 192.168.1.29
port: 80
username: “”
password: “”
name: Zgemma
Im running Version: OWIF 1.3.3
Version: OWIF 1.3.3
curl http://192.168.1.29/web/getallservices
returns all the xml as expected.
Help much appreciated. Thank you