From 53f82b40ca411a0297924ef094d395e4a3820407 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Wed, 27 Oct 2021 20:52:37 +0200 Subject: [PATCH] Use cumulative values --- custom_components/coronavirus_hessen/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/coronavirus_hessen/__init__.py b/custom_components/coronavirus_hessen/__init__.py index 9b25aa7..d0fa3d6 100644 --- a/custom_components/coronavirus_hessen/__init__.py +++ b/custom_components/coronavirus_hessen/__init__.py @@ -84,8 +84,8 @@ async def async_get_data(): try: county = line[0].get_text(" ", strip=True) 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)) + cases = parse_num(line[4].get_text(" ", strip=True)) + deaths = parse_num(line[5].get_text(" ", strip=True)) except: _LOGGER.exception("Error processing line {}, skipping".format(line)) continue