From f92e0e119359115e2a99b69023dc4d400baffbb1 Mon Sep 17 00:00:00 2001 From: Teemu R Date: Mon, 27 Jun 2022 00:05:57 +0200 Subject: [PATCH] Fix outdated vacuum mentions in README (#1442) Vacuum was renamed earlier to RoborockVacuum, but the README was not updated accordingly. This PR changes both CLI and API examples to fix this. --- README.rst | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/README.rst b/README.rst index 3c0c52546..88ccde2d6 100644 --- a/README.rst +++ b/README.rst @@ -38,12 +38,12 @@ You can get some information from any miIO/MIoT device, including its device mod Network: {'localIp': '', 'mask': '255.255.255.0', 'gw': ''} AP: {'rssi': -73, 'ssid': '', 'primary': 11, 'bssid': ''} -Each different device type is supported by their corresponding module (e.g., `vacuum` or `fan`). +Different devices are supported by their corresponding modules (e.g., `roborockvacuum` or `fan`). You can get the list of available commands for any given module by passing `--help` argument to it:: - $ miiocli vacuum --help + $ miiocli roborockvacuum --help - Usage: miiocli vacuum [OPTIONS] COMMAND [ARGS]... + Usage: miiocli roborockvacuum [OPTIONS] COMMAND [ARGS]... Options: --ip TEXT [required] @@ -58,16 +58,16 @@ You can get the list of available commands for any given module by passing `--he Each command invocation will automatically detect the device model necessary for some actions by querying the device. You can avoid this by specifying the model manually:: - miiocli vacuum --model roborock.vacuum.s5 --ip --token start + miiocli roborockvacuum --model roborock.vacuum.s5 --ip --token start API usage --------- All functionality is accessible through the `miio` module:: - from miio import Vacuum + from miio import RoborockVacuum - vac = Vacuum("", "") + vac = RoborockVacuum("", "") vac.start() Each separate device type inherits from `miio.Device` @@ -77,9 +77,9 @@ Each command invocation will automatically detect (and cache) the device model n by querying the device. You can avoid this by specifying the model manually:: - from miio import Vacuum + from miio import RoborockVacuum - vac = Vacuum("", "", model="roborock.vacuum.s5") + vac = RoborockVacuum("", "", model="roborock.vacuum.s5") Please refer to `API documentation `__ for more information.