diff --git a/speedport/__main__.py b/speedport/__main__.py index 8138355..bfd62bc 100755 --- a/speedport/__main__.py +++ b/speedport/__main__.py @@ -49,7 +49,9 @@ def data_table(data, keys): for d in data: text += ( "| " - + " | ".join([f"{str(d[key]):<{length}}" for key, length in columns.items()]) + + " | ".join( + [f"{str(d[key]):<{length}}" for key, length in columns.items()] + ) + " |\n" ) return text + line diff --git a/speedport/call.py b/speedport/call.py index 4dee3a2..01a3775 100644 --- a/speedport/call.py +++ b/speedport/call.py @@ -16,7 +16,9 @@ def __getitem__(self, item): try: return self.__getattribute__(item) except AttributeError: - return self._data.get(f"{self._call_type}_{item}", self.__getattribute__(item)) + return self._data.get( + f"{self._call_type}_{item}", self.__getattribute__(item) + ) @property def data(self): @@ -24,7 +26,7 @@ def data(self): @property def type(self): - return self._call_type.replace("calls","") + return self._call_type.replace("calls", "") @property def connection(self): diff --git a/speedport/speedport.py b/speedport/speedport.py index 1e839e7..841ea43 100644 --- a/speedport/speedport.py +++ b/speedport/speedport.py @@ -95,7 +95,6 @@ async def calls(self) -> list[Call]: result.sort(key=lambda d: d.date) return result - async def wifi_on(self): await self.api.set_wifi(status=True, guest=False)