Latly I’m facing a weard issue. I have some coinmarketcap sensors and at most of my ha restarts they don’t show up.
I have a similiar issue with alexa media, which lately does’t start at every restart of ha. @alandtse maybe you have a Idea
The thing is if I keep restarting ha, both services will be available again after some tries. But all of the times at least one of both services starts fine.
This is the error I get:
coinmarketcap: Error on device update!
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 292, in _async_add_entity
await entity.async_device_update(warning=False)
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'
For me it looks like the ha looks for the entities before they are ready, but I’m not sure. @petro Do I need a delay for that? Any idea?