Fhem sensor fix
This commit is contained in:
parent
5b0215177f
commit
06f96cb2dc
|
@ -68,7 +68,7 @@ class FhemSensor(Entity):
|
||||||
await self.async_update_ha_state()
|
await self.async_update_ha_state()
|
||||||
elif self._type == 'power' and line.startswith('power'):
|
elif self._type == 'power' and line.startswith('power'):
|
||||||
self._available = True
|
self._available = True
|
||||||
_, new_value = line
|
_, new_value = line.split(':')
|
||||||
self._state = int(new_value)
|
self._state = int(new_value)
|
||||||
await self.async_update_ha_state()
|
await self.async_update_ha_state()
|
||||||
elif line.startswith('ResndFail') or line.startswith('MISSING ACK'):
|
elif line.startswith('ResndFail') or line.startswith('MISSING ACK'):
|
||||||
|
|
Loading…
Reference in New Issue