From e7ef82ca3dbf866f4f0ddb5a35d26b48f588c13e Mon Sep 17 00:00:00 2001 From: Teemu Rytilahti Date: Sun, 19 Apr 2020 21:14:03 +0200 Subject: [PATCH] Fix Gateway ctor Fixes #673 --- miio/gateway.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/miio/gateway.py b/miio/gateway.py index 8a0b58c15..ef5dbe58d 100644 --- a/miio/gateway.py +++ b/miio/gateway.py @@ -77,8 +77,15 @@ class Gateway(Device): ## scene * get_lumi_bind ["scene", ] for rooms/devices""" - def __init__(self, ip: str = None, token: str = None) -> None: - super().__init__(ip, token) + def __init__( + self, + ip: str = None, + token: str = None, + start_id: int = 0, + debug: int = 0, + lazy_discover: bool = True, + ) -> None: + super().__init__(ip, token, start_id, debug, lazy_discover) self._alarm = GatewayAlarm(self) self._radio = GatewayRadio(self) self._zigbee = GatewayZigbee(self)