diff --git a/miio/tests/test_wifirepeater.py b/miio/tests/test_wifirepeater.py index 0c89677f4..9097839f0 100644 --- a/miio/tests/test_wifirepeater.py +++ b/miio/tests/test_wifirepeater.py @@ -108,11 +108,11 @@ def test_status(self): assert self.state().access_policy == self.device.start_state['sta']['access_policy'] assert self.state().associated_stations == self.device.start_state['mat'] - def test_set_wifi_explorer(self): - self.device.set_wifi_explorer(True) + def test_set_wifi_roaming(self): + self.device.set_wifi_roaming(True) assert self.info().raw['desc']['wifi_explorer'] == 1 - self.device.set_wifi_explorer(False) + self.device.set_wifi_roaming(False) assert self.info().raw['desc']['wifi_explorer'] == 0 def test_configuration(self): diff --git a/miio/wifirepeater.py b/miio/wifirepeater.py index 7d57f50ac..3be4665c1 100644 --- a/miio/wifirepeater.py +++ b/miio/wifirepeater.py @@ -80,18 +80,18 @@ def configuration(self) -> WifiRepeaterConfiguration: return WifiRepeaterConfiguration( self.send("miIO.get_repeater_ap_info", [])) - def set_wifi_explorer(self, wifi_explorer: bool): - """Turn the WiFi explorer on/off.""" + def set_wifi_roaming(self, wifi_roaming: bool): + """Turn the WiFi roaming on/off.""" return self.send("miIO.switch_wifi_explorer", [{ - 'wifi_explorer': int(wifi_explorer) + 'wifi_explorer': int(wifi_roaming) }]) def set_configuration(self, ssid: str, password: str, hidden: bool = False, - wifi_explorer: bool = True): + wifi_roaming: bool = False): """Update the configuration of the accesspoint.""" return self.send("miIO.switch_wifi_ssid", [{ 'ssid': ssid, 'pwd': password, 'hidden': int(hidden), - 'wifi_explorer': int(wifi_explorer) + 'wifi_explorer': int(wifi_roaming) }])