Skip to content

Commit 950248a

Browse files
committed
Rewrite parent_scan_interval default value
1 parent 0fba70c commit 950248a

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

custom_components/xiaomi_gateway3/core/gateway3.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,8 +358,7 @@ def __init__(self, host: str, token: str, config: dict, **options):
358358

359359
self._ble = options.get('ble', True) # for fast access
360360
self._debug = options.get('debug', '') # for fast access
361-
self.parent_scan_interval = (-1 if options.get('parent') is None
362-
else options['parent'])
361+
self.parent_scan_interval = options.get('parent', -1)
363362
self.default_devices = config['devices'] if config else None
364363

365364
self.telnet_cmd = options.get('telnet_cmd') or TELNET_CMD

0 commit comments

Comments
 (0)