Try restarting HA and then try to add the integration. That appears to have resolved the issue for me.
My version is 0.107.7.
Tried all that (cleared the browser cache, restarted hassio) but unfortunately doesnt work.
Maybe integration doesnt work to those who manage the UI through the app and not through yaml?
Post an issue on github.
Because it varies how they collect them.
Better figures/real data, will be known hopefully soon
Have sensor.worldwide_coronavirus_current and sensor.worldwide_coronavirus_recovered entities both become unavailable for anyone else lately?
Both are now showing:
This entity is currently unavailable and is an orphan to a removed, changed or dysfunctional integration or device.
If the entity is no longer in use, you can clean it up by removing it.
Iām guessing itās an issue or change at John Hopkins, as the UK data is working fine.
Same here.
yes - I have issues with worldwide, but Australia works fine:
2020-06-07 09:34:07 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.8/site-packages/homeassistant/helpers/update_coordinator.py", line 111, in _handle_refresh_interval
await self.async_refresh()
File "/srv/homeassistant/lib/python3.8/site-packages/homeassistant/helpers/update_coordinator.py", line 177, in async_refresh
update_callback()
File "/srv/homeassistant/lib/python3.8/site-packages/homeassistant/helpers/entity.py", line 297, in async_write_ha_state
self._async_write_ha_state() # type: ignore
File "/srv/homeassistant/lib/python3.8/site-packages/homeassistant/helpers/entity.py", line 320, in _async_write_ha_state
state = self.state
File "/srv/homeassistant/lib/python3.8/site-packages/homeassistant/components/coronavirus/sensor.py", line 54, in state
return sum(
File "/srv/homeassistant/lib/python3.8/site-packages/homeassistant/components/coronavirus/sensor.py", line 55, in <genexpr>
getattr(case, self.info_type) for case in self.coordinator.data.values()
File "/srv/homeassistant/lib/python3.8/site-packages/coronavirus/__init__.py", line 25, in current
return self.confirmed - self.deaths - self.recovered
TypeError: unsupported operand type(s) for -: 'int' and 'NoneType'
I also have this issue. All others except worldwide work as normal
Has this integration now stopped working at all?? WW was problematic but now on reboot AU not working and cant add other countriesā¦ Seeing the following log
2020-06-22 12:07:19 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 285, in async_add_entities
for entity in new_entities
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 282, in <listcomp>
self._async_add_entity( # type: ignore
File "/usr/src/homeassistant/homeassistant/components/coronavirus/sensor.py", line 22, in <genexpr>
for info_type in SENSORS
File "/usr/src/homeassistant/homeassistant/components/coronavirus/sensor.py", line 37, in __init__
self.name = f"{coordinator.data[country].country} Coronavirus {info_type}"
TypeError: 'NoneType' object is not subscriptable
Restarted 30 mins ago
thanks - rebooting a few more times give me the same error - no sensors working still Not sure whats going on! (HA 0.111.4 RPi2)
Saw a PR also maybe related - https://github.com/home-assistant/core/pull/36737#pullrequestreview-434528712
Seems that one will fix the worldwide sensor.
Just checked the integration and my entities are all normal (not restored or anything like that)
Have you tried removing the integration and adding it back in again?
I actually removed the WW integration and now cannot even add it back in !
I just added NZ and it is working fine.
thanks @DavidFW1960 - so ended up removing all signs of Coronavirus integration and rebootingā¦
then it allowed me to re-add countries (the country entry did not appear b4).
Now have added a few countries - still same issue with WW 2 sensors.
THanks!
Yeah that PR you linked needs to be merged. For now I just disable those specific sensors.
did the WW Deaths sensor also just stop working ??
Working here