barnumbirr / coinmarketcap

A python wrapper around the https://coinmarketcap.com API.
Apache License 2.0
436 stars 109 forks source link

JSON Decode Error #55

Open sephrioth opened 5 years ago

sephrioth commented 5 years ago

Home Assistant release with the issue:

v98.2

Operating environment (Hass.io/Docker/Windows/etc.):

Docker

Description of problem: Can't update / setup coinmarketcap sensors

Additional information:

Update for sensor.ethereum fails Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 261, in async_update_ha_state await self.async_device_update() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 441, in async_device_update await self.hass.async_add_executor_job(self.update) File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run result = self.fn(*self.args, **self.kwargs) File "/usr/src/homeassistant/homeassistant/components/coinmarketcap/sensor.py", line 148, in update self._ticker = self.data.ticker.get("data") AttributeError: 'JSONDecodeError' object has no attribute 'get'