Skip to content

Commit

Permalink
Fix Gateway constructor to follow baseclass' parameters (rytilahti#677)
Browse files Browse the repository at this point in the history
  • Loading branch information
rytilahti authored and xvlady committed May 9, 2021
1 parent 4881073 commit f6b13c4
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 f6b13c4

Please sign in to comment.