From 06f96cb2dc7edc2e6de21dc17fc912a6931ebfe2 Mon Sep 17 00:00:00 2001 From: Martin Bauer Date: Thu, 4 Jul 2019 23:09:25 +0200 Subject: [PATCH] Fhem sensor fix --- custom_components/fhem/sensor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/fhem/sensor.py b/custom_components/fhem/sensor.py index 1909e90..c31dd3c 100644 --- a/custom_components/fhem/sensor.py +++ b/custom_components/fhem/sensor.py @@ -68,7 +68,7 @@ class FhemSensor(Entity): await self.async_update_ha_state() elif self._type == 'power' and line.startswith('power'): self._available = True - _, new_value = line + _, new_value = line.split(':') self._state = int(new_value) await self.async_update_ha_state() elif line.startswith('ResndFail') or line.startswith('MISSING ACK'):