Fix `device` attribute in fritz_callmonitor.py (fixes #9055) (#9081)

pull/9091/head
Max 2017-08-22 09:24:36 +02:00 committed by Andrey
parent 42fcaf9a75
commit da2cb8e97e
1 changed files with 1 additions and 1 deletions

View File

@ -216,7 +216,7 @@ class FritzBoxCallMonitor(object):
self._sensor.set_attributes(att) self._sensor.set_attributes(att)
elif line[1] == "CONNECT": elif line[1] == "CONNECT":
self._sensor.set_state(VALUE_CONNECT) self._sensor.set_state(VALUE_CONNECT)
att = {"with": line[4], "device": [3], "accepted": isotime} att = {"with": line[4], "device": line[3], "accepted": isotime}
att["with_name"] = self._sensor.number_to_name(att["with"]) att["with_name"] = self._sensor.number_to_name(att["with"])
self._sensor.set_attributes(att) self._sensor.set_attributes(att)
elif line[1] == "DISCONNECT": elif line[1] == "DISCONNECT":