Issue: 32551Coinmarketcap platform uses an outdated API

Since of today the coinmarketcap sensor platform isn’t working anymore. Anybody any idea what could be the problem?

I’m using HassOS on Proxmox:

arch x86_64
dev false
docker true
hassio true
os_name Linux
python_version 3.7.6
timezone Europe/Amsterdam
version 0.106.5
virtualenv false

Lovelace

mode storage
resources 11
views 10

The logfile contains this error.

2020-03-06 15:50:10 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 400, in _async_add_entity
    suggested_object_id or entity.name or DEVICE_DEFAULT_NAME
  File "/usr/src/homeassistant/homeassistant/components/coinmarketcap/sensor.py", line 98, in name
    return self._ticker.get("name")
AttributeError: 'NoneType' object has no attribute 'get'

Seems to be a new API for this platform. The old one has been turned off. https://pro.coinmarketcap.com/migrate/

{"statusCode": 410,"error": "Gone","message": "WARNING: This API is now offline. Please switch to the new CoinMarketCap API. (https://pro.coinmarketcap.com/migrate/)"}

1 Like

See also issue: https://github.com/home-assistant/core/issues/32551

linked to here from Coinmarketcap Integration