diff --git a/custom_components/googlehome/config_flow.py b/custom_components/googlehome/config_flow.py index dcf1ec0..c5eb09d 100644 --- a/custom_components/googlehome/config_flow.py +++ b/custom_components/googlehome/config_flow.py @@ -71,7 +71,7 @@ async def async_step_init(self, user_input=None): { vol.Required(CONF_TRACK_ALARMS, default=self.config_entry.options.get(CONF_TRACK_ALARMS, False)): bool, vol.Required(CONF_TRACK_DEVICES, default=self.config_entry.options.get(CONF_TRACK_DEVICES, True)): bool, - vol.Required(CONF_TRACK_NEW_DEVICES, default=self.config_entry.options.get(CONF_TRACK_NEW_DEVICES, DEFAULT_TRACK_NEW)): bool, + #vol.Required(CONF_TRACK_NEW_DEVICES, default=self.config_entry.options.get(CONF_TRACK_NEW_DEVICES, DEFAULT_TRACK_NEW)): bool, vol.Required(CONF_CONSIDER_HOME, default=self.config_entry.options.get(CONF_CONSIDER_HOME, DEFAULT_CONSIDER_HOME.total_seconds())): int, vol.Required( CONF_RSSI_THRESHOLD, diff --git a/custom_components/googlehome/device_tracker.py b/custom_components/googlehome/device_tracker.py index ec511f0..3348e4b 100755 --- a/custom_components/googlehome/device_tracker.py +++ b/custom_components/googlehome/device_tracker.py @@ -65,7 +65,8 @@ def __init__(self, hass, client, config, device): super().__init__( hass, timedelta(seconds=config.options.get(CONF_CONSIDER_HOME, DEFAULT_CONSIDER_HOME.total_seconds())), - config.options.get(CONF_TRACK_NEW_DEVICES, DEFAULT_TRACK_NEW), + #config.options.get(CONF_TRACK_NEW_DEVICES, DEFAULT_TRACK_NEW), + True, # TODO migrate to the new device tracker api {}, list(), ) self.hass = hass @@ -136,3 +137,6 @@ async def async_update(self, now=None): attributes["rssi"] = device["rssi"] await self.async_see(mac=device["mac_address"], host_name=device.get("name"), source_type=SOURCE_TYPE_BLUETOOTH, attributes=attributes) + + async def async_update_config(self, path, dev_id, device): + pass \ No newline at end of file