From fdf8803a70474265fc645f80b26ed82ad1c3a447 Mon Sep 17 00:00:00 2001 From: Piotr Machowski Date: Sun, 23 Jan 2022 04:45:10 +0100 Subject: [PATCH] Change state attribute to level --- custom_components/hydro_imgw/sensor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/hydro_imgw/sensor.py b/custom_components/hydro_imgw/sensor.py index 54b618e..347fa9a 100644 --- a/custom_components/hydro_imgw/sensor.py +++ b/custom_components/hydro_imgw/sensor.py @@ -64,7 +64,7 @@ def extra_state_attributes(self): "low_value": "lowValue", "trend": "trend", "name": "name", - "state": "state", + "level": "state", "river": "status.river" } attributes = {}