From b39c6821499cc26cad0b4d99c41473155bb566cb Mon Sep 17 00:00:00 2001 From: Quentame Date: Sun, 3 Nov 2024 23:56:13 +0100 Subject: [PATCH] fix: Pylint W0201 attribute-defined-outside-init (#717) --- src/freebox_api/aiofreepybox.py | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/src/freebox_api/aiofreepybox.py b/src/freebox_api/aiofreepybox.py index 3f679df0..c2275683 100644 --- a/src/freebox_api/aiofreepybox.py +++ b/src/freebox_api/aiofreepybox.py @@ -79,6 +79,34 @@ def __init__( self._session: ClientSession self._access: Access + # Define modules + self.tv: Tv + self.system: System + self.dhcp: Dhcp + self.airmedia: Airmedia + self.player: Player + self.switch: Switch + self.lan: Lan + self.storage: Storage + self.lcd: Lcd + self.wifi: Wifi + self.phone: Phone + self.ftp: Ftp + self.fs: Fs + self.fw: Fw + self.freeplug: Freeplug + self.call: Call + self.connection: Connection + self.download: Download + self.home: Home + self.parental: Parental + self.netshare: Netshare + self.notifications: Notifications + self.remote: Remote + self.rrd: Rrd + self.upnpav: Upnpav + self.upnpigd: Upnpigd + async def open(self, host: str, port: str) -> None: """ Open a session to the freebox, get a valid access module