diff --git a/fritzconnection/lib/fritzhomeauto.py b/fritzconnection/lib/fritzhomeauto.py index 2df05b9..f968cc6 100644 --- a/fritzconnection/lib/fritzhomeauto.py +++ b/fritzconnection/lib/fritzhomeauto.py @@ -72,10 +72,10 @@ def device_information(self): info = list() for n in itertools.count(): try: - info = self.get_device_information_by_index(n) + device_information = self.get_device_information_by_index(n) except IndexError: break - info.append(info) + info.append(device_information) return info def set_switch(self, identifier, on=True):