diff --git a/custom_components/coronavirus_hessen/__init__.py b/custom_components/coronavirus_hessen/__init__.py index 6ce8f76..9b25aa7 100644 --- a/custom_components/coronavirus_hessen/__init__.py +++ b/custom_components/coronavirus_hessen/__init__.py @@ -83,9 +83,9 @@ async def async_get_data(): try: county = line[0].get_text(" ", strip=True) - cases = parse_num(line[3].get_text(" ", strip=True)) - deaths = parse_num(line[4].get_text(" ", strip=True)) - incidence = parse_num(line[6].get_text(" ", strip=True), t=float) + incidence = parse_num(line[1].get_text(" ", strip=True), t=float) + cases = parse_num(line[2].get_text(" ", strip=True)) + deaths = parse_num(line[3].get_text(" ", strip=True)) except: _LOGGER.exception("Error processing line {}, skipping".format(line)) continue