From fb5be5cfc9522f29c6546daaafcb2cb19101debe Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Mon, 19 Feb 2024 09:41:11 -0500 Subject: [PATCH 1/4] Add github action to codespell master on push and PRs --- .github/workflows/codespell.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/codespell.yml diff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.yml new file mode 100644 index 0000000..eeacead --- /dev/null +++ b/.github/workflows/codespell.yml @@ -0,0 +1,23 @@ +# Codespell configuration is within .codespellrc +--- +name: Codespell + +on: + push: + branches: [master] + pull_request: + branches: [master] + +permissions: + contents: read + +jobs: + codespell: + name: Check for spelling errors + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Codespell + uses: codespell-project/actions-codespell@v2 From 5c9e5eb00aa372f1bcc375446abeb67864fcd2ab Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Mon, 19 Feb 2024 09:41:11 -0500 Subject: [PATCH 2/4] Add rudimentary codespell config --- .codespellrc | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .codespellrc diff --git a/.codespellrc b/.codespellrc new file mode 100644 index 0000000..d58f025 --- /dev/null +++ b/.codespellrc @@ -0,0 +1,6 @@ +[codespell] +# Ref: https://github.com/codespell-project/codespell#using-a-config-file +skip = .git,.codespellrc +check-hidden = true +# ignore-regex = +# ignore-words-list = From c6f3345351c2486cba541c4017776fe198fee6d5 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Mon, 19 Feb 2024 09:43:03 -0500 Subject: [PATCH 3/4] Add custom codespell skips --- .codespellrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.codespellrc b/.codespellrc index d58f025..4f0575c 100644 --- a/.codespellrc +++ b/.codespellrc @@ -1,6 +1,6 @@ [codespell] # Ref: https://github.com/codespell-project/codespell#using-a-config-file -skip = .git,.codespellrc +skip = .git,.codespellrc,translations,resources.py check-hidden = true # ignore-regex = -# ignore-words-list = +ignore-words-list = hass,aline From b4e6ffd09911c0091ae240468fe41fb47dd9a722 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Mon, 1 Apr 2024 12:06:29 -0400 Subject: [PATCH 4/4] [DATALAD RUNCMD] run codespell throughout fixing typos automagically === Do not change lines below === { "chain": [], "cmd": "codespell -w", "exit": 0, "extra_inputs": [], "inputs": [], "outputs": [], "pwd": "." } ^^^ Do not change lines above ^^^ --- README.md | 2 +- custom_components/dreame_vacuum/dreame/device.py | 4 ++-- docs/map.md | 2 +- docs/services.md | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 2541357..3ae6792 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,7 @@ wget -O - https://raw.githubusercontent.com/Tasshack/dreame-vacuum/dev/install | Open your Home Assistant instance and start setting up a new integration. - Select configuration type: - - **Mi Home Acccount**: TODO + - **Mi Home Account**: TODO - **Dreamehome Account**: TODO - **Local**: TODO diff --git a/custom_components/dreame_vacuum/dreame/device.py b/custom_components/dreame_vacuum/dreame/device.py index d0ee73f..200b00d 100644 --- a/custom_components/dreame_vacuum/dreame/device.py +++ b/custom_components/dreame_vacuum/dreame/device.py @@ -2935,7 +2935,7 @@ def set_voice_assistant_language(self, voice_assistant_language: str) -> bool: or len(voice_assistant_language) < 2 or voice_assistant_language.upper() not in DreameVacuumVoiceAssistantLanguage.__members__ ): - raise InvalidActionException(f"Voice assistant language ({voice_assistant_language}) is not suported") + raise InvalidActionException(f"Voice assistant language ({voice_assistant_language}) is not supported") return self.set_property( DreameVacuumProperty.VOICE_ASSISTANT_LANGUAGE, DreameVacuumVoiceAssistantLanguage[voice_assistant_language.upper()], @@ -3935,7 +3935,7 @@ def set_auto_switch_property(self, prop: DreameVacuumAutoSwitchProperty, value: result = self.set_auto_switch_settings({"k": prop.value, "v": int(value)}) if result is None or result[0]["code"] != 0: _LOGGER.error( - "Auto Swtich Property not updated: %s: %s -> %s", + "Auto Switch Property not updated: %s: %s -> %s", prop.name, current_value, value, diff --git a/docs/map.md b/docs/map.md index 82e7152..551204d 100644 --- a/docs/map.md +++ b/docs/map.md @@ -499,7 +499,7 @@ Map will be rendered at 1:1 ratio when this option is enabled from configuration ### Low Resolution Map -Low resolution configuration option must be enabled when Home Assistant instace running on a system or container with less than 3GB memory otherwise Home Assistance instance may not start since integration uses a lot of memory for rendering zoomable high resolution images like official APP. +Low resolution configuration option must be enabled when Home Assistant instance running on a system or container with less than 3GB memory otherwise Home Assistance instance may not start since integration uses a lot of memory for rendering zoomable high resolution images like official APP. ### How to view the map on the dashboard \ No newline at end of file diff --git a/docs/services.md b/docs/services.md index 29899ad..97eb0ec 100644 --- a/docs/services.md +++ b/docs/services.md @@ -448,7 +448,7 @@ Rename a map. ### `dreame_vacuum.vacuum_restore_map` Restore a map from previous state that are created and uploaded by the device. -> - It is not guaranteed that map recovery will be successfull. Cloud does not store the files forever and recovery files usually be deleted from the cloud after 365 days from the last access. +> - It is not guaranteed that map recovery will be successful. Cloud does not store the files forever and recovery files usually be deleted from the cloud after 365 days from the last access. > - Cloud connection is required with this service. **Examples:**