Skip to content

Commit

Permalink
Fix beta version parent_scan_interval
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexxIT committed Jan 8, 2021
1 parent 1b7b186 commit e912d90
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion custom_components/xiaomi_gateway3/core/gateway3.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,8 @@ def __init__(self, host: str, token: str, config: dict, **options):

self._ble = options.get('ble') # for fast access
self._debug = options.get('debug', '') # for fast access
self.parent_scan_interval = options.get('parent', -1)
self.parent_scan_interval = (-1 if options.get('parent') is None
else options['parent'])
self.default_devices = config['devices'] if config else None

self.devices = {}
Expand Down

0 comments on commit e912d90

Please sign in to comment.