Any way we can update the integration to support State level and County level since the data is now available from the JHU API?
I try to add the integration but when I select āCoronavirusā from the integration list nothing happens. It doesnt go to the setup window, it reverts back to the initial page āSet up a new integrationā.
Whatās wrong?
Im running the latest version of hassio.
āLatestā is not a version.
Make sure you have cleared your browser cache.
Iām having the same issue from within the Android app and browser. Iām running 0.106.5. in a docker container.
It was working previously, but all of the values on the card were showing as unknown so I removed the integration but am now unable to add it back.
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.