Skip to content

Commit

Permalink
chore: enable codespell
Browse files Browse the repository at this point in the history
  • Loading branch information
chemelli74 committed May 28, 2024
1 parent 8f24cad commit c59d5a5
Show file tree
Hide file tree
Showing 14 changed files with 95 additions and 34 deletions.
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/2-issue_en.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
name: Bug report
description: Intergration or entity is not working right
description: Integration or entity is not working right
labels: ["bug"]
body:
- type: input
Expand All @@ -11,7 +11,7 @@ body:
validations:
required: true
attributes:
label: Intergration version
label: Integration version
placeholder: 0.3.18
- type: input
validations:
Expand Down
2 changes: 1 addition & 1 deletion .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Reason & Detail

## Releted issue
## Related issue

fix #X

Expand Down
9 changes: 5 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,11 @@ repos:
hooks:
- id: pyupgrade
args: [--py37-plus]
# - repo: https://github.com/codespell-project/codespell
# rev: v2.3.0
# hooks:
# - id: codespell
- repo: https://github.com/codespell-project/codespell
rev: v2.3.0
hooks:
- id: codespell
args: ["-L hass", "-w"]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.10.0
hooks:
Expand Down
2 changes: 1 addition & 1 deletion custom_components/midea_ac_lan/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
},
"cmd_body": {
"name": "command body",
"description": "The body of command, (not include MSmart protocol head and cheksum at the end)"
"description": "The body of command, (not include MSmart protocol head and checksum at the end)"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion custom_components/midea_ac_lan/translations/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -116,4 +116,4 @@
}
}
}
}
}
2 changes: 1 addition & 1 deletion custom_components/midea_ac_lan/translations/hu.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"type": "Típus",
"ip_address": "IP cím",
"port": "Port",
"model": "Modell",
"model": "Model",
"subtype": "Altípus",
"protocol": "Protokoll",
"token": "Token",
Expand Down
2 changes: 1 addition & 1 deletion custom_components/midea_ac_lan/translations/zh-Hans.json
Original file line number Diff line number Diff line change
Expand Up @@ -116,4 +116,4 @@
}
}
}
}
}
4 changes: 2 additions & 2 deletions doc/AC.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
- Supports fan mode
- Supports swing mode
- Supports preset mode
- Supports build-in fresh air system
- Supports built-in fresh air system

### Supported Run-Modes

Expand Down Expand Up @@ -69,7 +69,7 @@
| switch.{DEVICEID}_swing_horizontal | switch | Swing Horizontal |
| switch.{DEVICEID}_swing_vertical | switch | Swing Vertical |

## Build-in fresh air system
## Built-in fresh air system

Some Midea appliance be named "Fresh Air Appliance", the protocol that actually uses the air conditioner. If your fresh air appliance is identified as an air conditioner, you should check the Fresh Air Fan entity in CONFIGURE, and use this fan entity to control your fresh air appliance.***

Expand Down
20 changes: 16 additions & 4 deletions doc/B0.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,27 @@ No default entity.

### Extra entities

<<<<<<< Updated upstream
| EntityID | Class | Description |
| ----------------------------------------------- | ------------- | ---------------------------------------- |
| binary_sensor.{DEVICEID}\_door | binary_sensor | Door Status |
| binary_sensor.{DEVICEID}\_tank_ejected | binary_sensor | Tank Ejected (warnning message) |
| binary_sensor.{DEVICEID}\_water_change_reminder | binary_sensor | Water Change Reminder (warnning message) |
| binary_sensor.{DEVICEID}\_water_shortage | binary_sensor | Water Shortage (warnning message) |
| sensor.{DEVICEID}\_current_temperature | sensor | Current Temperatur |
| binary_sensor.{DEVICEID}\_tank_ejected | binary_sensor | Tank Ejected (warning message) |
| binary_sensor.{DEVICEID}\_water_change_reminder | binary_sensor | Water Change Reminder (warning message) |
| binary_sensor.{DEVICEID}\_water_shortage | binary_sensor | Water Shortage (warning message) |
| sensor.{DEVICEID}\_current_temperature | sensor | Current Temperature |
| sensor.{DEVICEID}\_status | sensor | Current Status |
| sensor.{DEVICEID}\_time_remaining | sensor | Time Remaining |
=======
| EntityID | Class | Description |
| ----------------------------------------------- | ------------- | ---------------------------------------- |
| binary_sensor.{DEVICEID}\_door | binary_sensor | Door Status |
| binary_sensor.{DEVICEID}\_tank_ejected | binary_sensor | Tank Ejected (warning message) |
| binary_sensor.{DEVICEID}\_water_change_reminder | binary_sensor | Water Change Reminder (warning message) |
| binary_sensor.{DEVICEID}\_water_shortage | binary_sensor | Water Shortage (warning message) |
| sensor.{DEVICEID}\_current_temperature | sensor | Current Temperature |
| sensor.{DEVICEID}\_status | sensor | Current Status |
| sensor.{DEVICEID}\_time_remaining | sensor | Time Remaining |
>>>>>>> Stashed changes
## Service

Expand Down
20 changes: 16 additions & 4 deletions doc/B0_hans.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,27 @@

### 额外生成实体

<<<<<<< Updated upstream
| EntityID | 类型 | 名称 | 描述 |
| ----------------------------------------------- | ------------- | ---------------------------------------- | ------------------ |
| binary_sensor.{DEVICEID}\_door | binary_sensor | Door Status | 门状态 |
| binary_sensor.{DEVICEID}\_tank_ejected | binary_sensor | Tank Ejected (warnning message) | 水箱弹出(警告信息) |
| binary_sensor.{DEVICEID}\_water_change_reminder | binary_sensor | Water Change Reminder (warnning message) | 换水提醒(警告信息) |
| binary_sensor.{DEVICEID}\_water_shortage | binary_sensor | Water Shortage (warnning message) | 缺水(警告信息) |
| sensor.{DEVICEID}\_current_temperature | sensor | Current Temperatur | 当前温度 |
| binary_sensor.{DEVICEID}\_tank_ejected | binary_sensor | Tank Ejected (warning message) | 水箱弹出(警告信息) |
| binary_sensor.{DEVICEID}\_water_change_reminder | binary_sensor | Water Change Reminder (warning message) | 换水提醒(警告信息) |
| binary_sensor.{DEVICEID}\_water_shortage | binary_sensor | Water Shortage (warning message) | 缺水(警告信息) |
| sensor.{DEVICEID}\_current_temperature | sensor | Current Temperature | 当前温度 |
| sensor.{DEVICEID}\_status | sensor | Current Status | 当前状态 |
| sensor.{DEVICEID}\_time_remaining | sensor | Time Remaining | 剩余时间 |
=======
| EntityID | 类型 | 名称 | 描述 |
| ----------------------------------------------- | ------------- | ---------------------------------------- | ------------------ |
| binary_sensor.{DEVICEID}\_door | binary_sensor | Door Status | 门状态 |
| binary_sensor.{DEVICEID}\_tank_ejected | binary_sensor | Tank Ejected (warning message) | 水箱弹出(警告信息) |
| binary_sensor.{DEVICEID}\_water_change_reminder | binary_sensor | Water Change Reminder (warning message) | 换水提醒(警告信息) |
| binary_sensor.{DEVICEID}\_water_shortage | binary_sensor | Water Shortage (warning message) | 缺水(警告信息) |
| sensor.{DEVICEID}\_current_temperature | sensor | Current Temperature | 当前温度 |
| sensor.{DEVICEID}\_status | sensor | Current Status | 当前状态 |
| sensor.{DEVICEID}\_time_remaining | sensor | Time Remaining | 剩余时间 |
>>>>>>> Stashed changes
## 服务

Expand Down
20 changes: 16 additions & 4 deletions doc/B1.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,27 @@ No default entity.

### Extra entities

<<<<<<< Updated upstream
| EntityID | Class | Description |
| ----------------------------------------------- | ------------- | ---------------------------------------- |
| binary_sensor.{DEVICEID}\_door | binary_sensor | Door Status |
| binary_sensor.{DEVICEID}\_tank_ejected | binary_sensor | Tank Ejected (warnning message) |
| binary_sensor.{DEVICEID}\_water_change_reminder | binary_sensor | Water Change Reminder (warnning message) |
| binary_sensor.{DEVICEID}\_water_shortage | binary_sensor | Water Shortage (warnning message) |
| sensor.{DEVICEID}\_current_temperature | sensor | Current Temperatur |
| binary_sensor.{DEVICEID}\_tank_ejected | binary_sensor | Tank Ejected (warning message) |
| binary_sensor.{DEVICEID}\_water_change_reminder | binary_sensor | Water Change Reminder (warning message) |
| binary_sensor.{DEVICEID}\_water_shortage | binary_sensor | Water Shortage (warning message) |
| sensor.{DEVICEID}\_current_temperature | sensor | Current Temperature |
| sensor.{DEVICEID}\_status | sensor | Current Status |
| sensor.{DEVICEID}\_time_remaining | sensor | Time Remaining |
=======
| EntityID | Class | Description |
| ----------------------------------------------- | ------------- | ---------------------------------------- |
| binary_sensor.{DEVICEID}\_door | binary_sensor | Door Status |
| binary_sensor.{DEVICEID}\_tank_ejected | binary_sensor | Tank Ejected (warning message) |
| binary_sensor.{DEVICEID}\_water_change_reminder | binary_sensor | Water Change Reminder (warning message) |
| binary_sensor.{DEVICEID}\_water_shortage | binary_sensor | Water Shortage (warning message) |
| sensor.{DEVICEID}\_current_temperature | sensor | Current Temperature |
| sensor.{DEVICEID}\_status | sensor | Current Status |
| sensor.{DEVICEID}\_time_remaining | sensor | Time Remaining |
>>>>>>> Stashed changes
## Service

Expand Down
20 changes: 16 additions & 4 deletions doc/B1_hans.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,27 @@

### 额外生成实体

<<<<<<< Updated upstream
| EntityID | 类型 | 名称 | 描述 |
| ----------------------------------------------- | ------------- | ---------------------------------------- | ------------------ |
| binary_sensor.{DEVICEID}\_door | binary_sensor | Door Status | 门状态 |
| binary_sensor.{DEVICEID}\_tank_ejected | binary_sensor | Tank Ejected (warnning message) | 水箱弹出(警告信息) |
| binary_sensor.{DEVICEID}\_water_change_reminder | binary_sensor | Water Change Reminder (warnning message) | 换水提醒(警告信息) |
| binary_sensor.{DEVICEID}\_water_shortage | binary_sensor | Water Shortage (warnning message) | 缺水(警告信息) |
| sensor.{DEVICEID}\_current_temperature | sensor | Current Temperatur | 当前温度 |
| binary_sensor.{DEVICEID}\_tank_ejected | binary_sensor | Tank Ejected (warning message) | 水箱弹出(警告信息) |
| binary_sensor.{DEVICEID}\_water_change_reminder | binary_sensor | Water Change Reminder (warning message) | 换水提醒(警告信息) |
| binary_sensor.{DEVICEID}\_water_shortage | binary_sensor | Water Shortage (warning message) | 缺水(警告信息) |
| sensor.{DEVICEID}\_current_temperature | sensor | Current Temperature | 当前温度 |
| sensor.{DEVICEID}\_status | sensor | Current Status | 当前状态 |
| sensor.{DEVICEID}\_time_remaining | sensor | Time Remaining | 剩余时间 |
=======
| EntityID | 类型 | 名称 | 描述 |
| ----------------------------------------------- | ------------- | ---------------------------------------- | ------------------ |
| binary_sensor.{DEVICEID}\_door | binary_sensor | Door Status | 门状态 |
| binary_sensor.{DEVICEID}\_tank_ejected | binary_sensor | Tank Ejected (warning message) | 水箱弹出(警告信息) |
| binary_sensor.{DEVICEID}\_water_change_reminder | binary_sensor | Water Change Reminder (warning message) | 换水提醒(警告信息) |
| binary_sensor.{DEVICEID}\_water_shortage | binary_sensor | Water Shortage (warning message) | 缺水(警告信息) |
| sensor.{DEVICEID}\_current_temperature | sensor | Current Temperature | 当前温度 |
| sensor.{DEVICEID}\_status | sensor | Current Status | 当前状态 |
| sensor.{DEVICEID}\_time_remaining | sensor | Time Remaining | 剩余时间 |
>>>>>>> Stashed changes
## 服务

Expand Down
20 changes: 16 additions & 4 deletions doc/B4_hans.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,27 @@

### 额外生成实体

<<<<<<< Updated upstream
| EntityID | 类型 | 名称 | 描述 |
| ----------------------------------------------- | ------------- | ---------------------------------------- | ------------------ |
| binary_sensor.{DEVICEID}\_door | binary_sensor | Door Status | 门状态 |
| binary_sensor.{DEVICEID}\_tank_ejected | binary_sensor | Tank Ejected (warnning message) | 水箱弹出(警告信息) |
| binary_sensor.{DEVICEID}\_water_change_reminder | binary_sensor | Water Change Reminder (warnning message) | 换水提醒(警告信息) |
| binary_sensor.{DEVICEID}\_water_shortage | binary_sensor | Water Shortage (warnning message) | 缺水(警告信息) |
| sensor.{DEVICEID}\_current_temperature | sensor | Current Temperatur | 当前温度 |
| binary_sensor.{DEVICEID}\_tank_ejected | binary_sensor | Tank Ejected (warning message) | 水箱弹出(警告信息) |
| binary_sensor.{DEVICEID}\_water_change_reminder | binary_sensor | Water Change Reminder (warning message) | 换水提醒(警告信息) |
| binary_sensor.{DEVICEID}\_water_shortage | binary_sensor | Water Shortage (warning message) | 缺水(警告信息) |
| sensor.{DEVICEID}\_current_temperature | sensor | Current Temperature | 当前温度 |
| sensor.{DEVICEID}\_status | sensor | Current Status | 当前状态 |
| sensor.{DEVICEID}\_time_remaining | sensor | Time Remaining | 剩余时间 |
=======
| EntityID | 类型 | 名称 | 描述 |
| ----------------------------------------------- | ------------- | ---------------------------------------- | ------------------ |
| binary_sensor.{DEVICEID}\_door | binary_sensor | Door Status | 门状态 |
| binary_sensor.{DEVICEID}\_tank_ejected | binary_sensor | Tank Ejected (warning message) | 水箱弹出(警告信息) |
| binary_sensor.{DEVICEID}\_water_change_reminder | binary_sensor | Water Change Reminder (warning message) | 换水提醒(警告信息) |
| binary_sensor.{DEVICEID}\_water_shortage | binary_sensor | Water Shortage (warning message) | 缺水(警告信息) |
| sensor.{DEVICEID}\_current_temperature | sensor | Current Temperature | 当前温度 |
| sensor.{DEVICEID}\_status | sensor | Current Status | 当前状态 |
| sensor.{DEVICEID}\_time_remaining | sensor | Time Remaining | 剩余时间 |
>>>>>>> Stashed changes
## 服务

Expand Down
2 changes: 1 addition & 1 deletion doc/CE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Fresh Air Appliance

***Note: Some Midea appliance be named "Fresh Air Appliance", the protocol that actually uses the air conditioner. If your fresh air appliance is identified as an air conditioner, check out [Build-in fresh air system](CE.md#Build-in%20fresh%20air%20system)***
***Note: Some Midea appliance be named "Fresh Air Appliance", the protocol that actually uses the air conditioner. If your fresh air appliance is identified as an air conditioner, check out [Built-in fresh air system](CE.md#Built-in%20fresh%20air%20system)***

## Features

Expand Down

0 comments on commit c59d5a5

Please sign in to comment.