From da2cb8e97e6a5f06757ce18a390dc785e7ff82c4 Mon Sep 17 00:00:00 2001 From: Max <870074+max-te@users.noreply.github.com> Date: Tue, 22 Aug 2017 09:24:36 +0200 Subject: [PATCH] Fix `device` attribute in fritz_callmonitor.py (fixes #9055) (#9081) --- homeassistant/components/sensor/fritzbox_callmonitor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/sensor/fritzbox_callmonitor.py b/homeassistant/components/sensor/fritzbox_callmonitor.py index a780d999b7e..063a4808915 100644 --- a/homeassistant/components/sensor/fritzbox_callmonitor.py +++ b/homeassistant/components/sensor/fritzbox_callmonitor.py @@ -216,7 +216,7 @@ class FritzBoxCallMonitor(object): self._sensor.set_attributes(att) elif line[1] == "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"]) self._sensor.set_attributes(att) elif line[1] == "DISCONNECT":