Skip to content

Commit

Permalink
Fix Gateway constructor to follow baseclass' parameters (#677)
Browse files Browse the repository at this point in the history
Fixes #673
  • Loading branch information
rytilahti authored Apr 20, 2020
1 parent ea497a0 commit 881bc83
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions miio/gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,15 @@ class Gateway(Device):
## scene
* get_lumi_bind ["scene", <page number>] 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)
Expand Down

0 comments on commit 881bc83

Please sign in to comment.