Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: enable prettier #41

Merged
merged 1 commit into from
May 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ repos:
- id: check-xml
- id: check-yaml
- id: detect-private-key
# - repo: https://github.com/pre-commit/mirrors-prettier
# rev: v4.0.0-alpha.8
# hooks:
# - id: prettier
# args: ["--tab-width", "2"]
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v4.0.0-alpha.8
hooks:
- id: prettier
args: ["--tab-width", "2"]
- repo: https://github.com/asottile/pyupgrade
rev: v3.15.2
hooks:
Expand Down
13 changes: 3 additions & 10 deletions custom_components/midea_ac_lan/manifest.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,13 @@
{
"domain": "midea_ac_lan",
"name": "Midea AC LAN",
"codeowners": [
"@wuwentao",
"@rokam",
"@chemelli74"
],
"codeowners": ["@wuwentao", "@rokam", "@chemelli74"],
"config_flow": true,
"dependencies": [],
"documentation": "https://github.com/wuwentao/midea_ac_lan#readme",
"integration_type": "device",
"iot_class": "local_push",
"issue_tracker": "https://github.com/wuwentao/midea_ac_lan/issues",
"requirements": [
"pycryptodome",
"midea-local==1.0.3"
],
"requirements": ["pycryptodome", "midea-local==1.0.3"],
"version": "v0.4.0-alpha"
}
}
216 changes: 108 additions & 108 deletions custom_components/midea_ac_lan/translations/en.json
Original file line number Diff line number Diff line change
@@ -1,119 +1,119 @@
{
"config": {
"error": {
"preset_account": "Failed to login with preset account, please report this issue",
"login_failed": "Failed to login, account or password was wrong",
"no_devices": "No new available appliances found on the network",
"device_exist": "Appliance is already configured",
"config_incorrect": "The configuration is incorrect",
"connect_error": "Can't connect to appliance",
"invalid_token": "Token or Key in an incorrect format"
"config": {
"error": {
"preset_account": "Failed to login with preset account, please report this issue",
"login_failed": "Failed to login, account or password was wrong",
"no_devices": "No new available appliances found on the network",
"device_exist": "Appliance is already configured",
"config_incorrect": "The configuration is incorrect",
"connect_error": "Can't connect to appliance",
"invalid_token": "Token or Key in an incorrect format"
},
"step": {
"user": {
"data": {
"way": "Adding appliances"
},
"description": "Choose the way to add a appliance",
"title": "Add new appliance"
},
"login": {
"data": {
"account": "Account",
"password": "Password"
},
"step": {
"user": {
"data": {
"way": "Adding appliances"
},
"description": "Choose the way to add a appliance",
"title": "Add new appliance"
},
"login": {
"data": {
"account": "Account",
"password": "Password"
},
"description": "Login and storage your Midea account only for getting the appliance info.\nYou can remove this configuration after all appliance configured.",
"title": "Login"
},
"discovery": {
"description": "IP address for device, enter \"auto\" to discover automatically\nYou can also use an IP address to search within a specified network, such as \"192.168.1.255\"",
"title": "Search",
"data": {
"ip_address": "IP address"
}
},
"list":{
"description": "{table}",
"title": "Appliances"
},
"auto": {
"data": {
"device": "Appliances"
},
"description": "Choose a appliance to add",
"title": "New appliance found"
},
"manually": {
"data": {
"name": "Name (e.g. Living room AC)",
"device_id": "Appliance code",
"type": "Type",
"ip_address": "IP address",
"port": "Port",
"model": "Model",
"subtype": "Subtype",
"protocol": "Protocol",
"token": "Token",
"key": "Key"
},
"description": "Configuration of appliance",
"title": "New appliance"
}
"description": "Login and storage your Midea account only for getting the appliance info.\nYou can remove this configuration after all appliance configured.",
"title": "Login"
},
"discovery": {
"description": "IP address for device, enter \"auto\" to discover automatically\nYou can also use an IP address to search within a specified network, such as \"192.168.1.255\"",
"title": "Search",
"data": {
"ip_address": "IP address"
}
},
"list": {
"description": "{table}",
"title": "Appliances"
},
"auto": {
"data": {
"device": "Appliances"
},
"description": "Choose a appliance to add",
"title": "New appliance found"
},
"manually": {
"data": {
"name": "Name (e.g. Living room AC)",
"device_id": "Appliance code",
"type": "Type",
"ip_address": "IP address",
"port": "Port",
"model": "Model",
"subtype": "Subtype",
"protocol": "Protocol",
"token": "Token",
"key": "Key"
},
"description": "Configuration of appliance",
"title": "New appliance"
}
}
},
"options": {
"step": {
"init": {
"data": {
"ip_address": "IP address",
"refresh_interval": "Refresh interval (0 means not refreshing actively)",
"sensors": "Extra sensors",
"switches": "Extra controls",
"customize": "Customize"
},
"title": "Configure"
}
},
"options": {
"step": {
"init": {
"data": {
"ip_address": "IP address",
"refresh_interval": "Refresh interval (0 means not refreshing actively)",
"sensors": "Extra sensors",
"switches": "Extra controls",
"customize": "Customize"
},
"title": "Configure"
}
"abort": {
"account_option": "The account does not supports this operation.\nClick \"ADD DEVICE\" to add a new device."
}
},
"services": {
"set_attribute": {
"name": "Set attribute",
"description": "Set the attribute value of device",
"fields": {
"device_id": {
"name": "Appliance code",
"description": "The appliance code (Device ID) of appliance"
},
"abort": {
"account_option": "The account does not supports this operation.\nClick \"ADD DEVICE\" to add a new device."
"attribute": {
"name": "Attribute",
"description": "The attribute name want to set"
},
"value": {
"name": "Value",
"description": "The attribute value want to set"
}
}
},
"services": {
"set_attribute": {
"name": "Set attribute",
"description": "Set the attribute value of device",
"fields" : {
"device_id": {
"name": "Appliance code",
"description": "The appliance code (Device ID) of appliance"
},
"attribute": {
"name": "Attribute",
"description": "The attribute name want to set"
},
"value": {
"name": "Value",
"description": "The attribute value want to set"
}
}
"send_command": {
"name": "Customize command",
"description": "Send a customize command to device",
"fields": {
"device_id": {
"name": "Appliance code",
"description": "The appliance code (Device ID) of appliance"
},
"cmd_type": {
"name": "command type",
"description": "The type of command,should be 3(query) or 2(set)"
},
"send_command": {
"name": "Customize command",
"description": "Send a customize command to device",
"fields" : {
"device_id": {
"name": "Appliance code",
"description": "The appliance code (Device ID) of appliance"
},
"cmd_type": {
"name": "command type",
"description": "The type of command,should be 3(query) or 2(set)"
},
"cmd_body": {
"name": "command body",
"description": "The body of command, (not include MSmart protocol head and checksum at the end)"
}
}
"cmd_body": {
"name": "command body",
"description": "The body of command, (not include MSmart protocol head and checksum at the end)"
}
}
}
}
}
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 @@
}
}
}
}
}
Loading
Loading