Skip to content
Open
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
2 changes: 1 addition & 1 deletion .github/workflows/matchers/python.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
]
}
]
}
}
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@
.vscode/**
**/__pycache__/**
Config/**
.trunk/logs
/.project
2 changes: 1 addition & 1 deletion .gitpod.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# trunk-ignore(hadolint/DL3007)
# hadolint ignore=DL3007
FROM gitpod/workspace-full:latest

USER gitpod
Expand Down
1 change: 0 additions & 1 deletion .gitpod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ github:
addBadge: false
vscode:
extensions:
- esbenp.prettier-vscode
- github.vscode-pull-request-github
- eamodio.gitlens
- ms-python.python
21 changes: 21 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,24 @@ repos:
rev: v1.29.0
hooks:
- id: yamllint
- repo: https://github.com/rhysd/actionlint
rev: v1.7.12
hooks:
- id: actionlint
- repo: https://github.com/gitleaks/gitleaks
rev: v8.30.0
hooks:
- id: gitleaks
- repo: https://github.com/shenxianpeng/hadolint-pre-commit
rev: v2.14.0.1
hooks:
- id: hadolint
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.49.0
hooks:
- id: markdownlint
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: pretty-format-json
args: [--autofix, '--indent=4', --no-sort-keys]
1 change: 0 additions & 1 deletion .trunk/.gitignore

This file was deleted.

14 changes: 0 additions & 14 deletions .trunk/trunk.yaml

This file was deleted.

11 changes: 4 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@

# **Important message**
>
> This a fork of the archived project created by [vlebourl](https://github.com/vlebourl/custom_vesync), and previously maintained by [micahqcade](https://github.com/micahqcade/). Please contribute here.
# VeSync custom component for Home Assistant

<!---[![hacs_badge](https://img.shields.io/badge/HACS-Default-orange.svg)](https://github.com/custom-components/hacs)-->
[![GitHub release](https://img.shields.io/github/v/release/haext/custom_vesync.svg)](https://GitHub.com/haext/custom_vesync/releases/)

# VeSync custom component for Home Assistant
> **Important:** This a fork of the archived project created by [vlebourl](https://github.com/vlebourl/custom_vesync), and previously maintained by [micahqcade](https://github.com/micahqcade/). Please contribute here.

Custom component for Home Assistant to interact with smart devices via the VeSync platform.
This integration is heavily based on [VeSync_bpo](https://github.com/borpin/vesync-bpo) and relies on [pyvesync](https://github.com/webdjoe/pyvesync) under the hood.
Expand All @@ -21,7 +18,7 @@ This integration will override the core VeSync integration.

[![Open your Home Assistant instance and open a repository inside the Home Assistant Community Store.](https://my.home-assistant.io/badges/hacs_repository.svg)](https://my.home-assistant.io/redirect/hacs_repository/?owner=haext&repository=custom_vesync&category=integration)

This integration can be installed by adding this repository to HACS __AS A CUSTOM REPOSITORY__, then searching for `Custom VeSync`, and choosing install. Reboot Home Assistant and configure the 'VeSync' integration via the integrations page or press the blue button below.
This integration can be installed by adding this repository to HACS **AS A CUSTOM REPOSITORY**, then searching for `Custom VeSync`, and choosing install. Reboot Home Assistant and configure the 'VeSync' integration via the integrations page or press the blue button below.

[![Open your Home Assistant instance and start setting up a new integration.](https://my.home-assistant.io/badges/config_flow_start.svg)](https://my.home-assistant.io/redirect/config_flow_start/?domain=vesync)

Expand Down Expand Up @@ -59,7 +56,7 @@ logger:

## TODO LIST

```
```markdown
- [x] Air Fryer Properties (AirFryer158)
- [ ] Air Fryer Methods
- [ ] Create the Card
Expand Down
54 changes: 27 additions & 27 deletions custom_components/vesync/manifest.json
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
{
"domain": "vesync",
"name": "VeSync",
"codeowners": [
"@markperdue",
"@webdjoe",
"@thegardenmonkey",
"@vlebourl",
"@tv4you2016",
"@gdgib"
],
"config_flow": true,
"dhcp": [
{
"hostname": "levoit-*",
"macaddress": "*"
}
],
"documentation": "https://github.com/haext/custom_vesync",
"iot_class": "cloud_polling",
"issue_tracker": "https://github.com/haext/custom_vesync/issues",
"loggers": [
"pyvesync"
],
"requirements": [
"pyvesync==2.1.15"
],
"version": "1.4.0"
"domain": "vesync",
"name": "VeSync",
"codeowners": [
"@markperdue",
"@webdjoe",
"@thegardenmonkey",
"@vlebourl",
"@tv4you2016",
"@gdgib"
],
"config_flow": true,
"dhcp": [
{
"hostname": "levoit-*",
"macaddress": "*"
}
],
"documentation": "https://github.com/haext/custom_vesync",
"iot_class": "cloud_polling",
"issue_tracker": "https://github.com/haext/custom_vesync/issues",
"loggers": [
"pyvesync"
],
"requirements": [
"pyvesync==2.1.15"
],
"version": "1.4.0"
}
78 changes: 39 additions & 39 deletions custom_components/vesync/strings.json
Original file line number Diff line number Diff line change
@@ -1,46 +1,46 @@
{
"title": "VeSync Integration for Home Assistant",
"device_automation": {
"action_type": {
"set_mode": "Change mode on {entity_name}"
}
},
"config": {
"flow_title": "Gateway: {gateway_id}",
"step": {
"user": {
"title": "VeSync Integration for Home Assistant",
"description": "Custom component for Home Assistant to interact with smart devices via the VeSync platform.",
"data": {
"username": "[%key:common::config_flow::data::email%]",
"password": "[%key:common::config_flow::data::password%]",
"polling_interval": "Polling interval (seconds)"
}
},
"reauth_confirm": {
"title": "Reauthenticate with your VeSync credentials",
"data": {
"username": "[%key:common::config_flow::data::email%]",
"password": "[%key:common::config_flow::data::password%]",
"polling_interval": "Polling interval (seconds)"
"title": "VeSync Integration for Home Assistant",
"device_automation": {
"action_type": {
"set_mode": "Change mode on {entity_name}"
}
}
},
"error": {
"invalid_auth": "[%key:common::config_flow::error::invalid_auth%]"
"config": {
"flow_title": "Gateway: {gateway_id}",
"step": {
"user": {
"title": "VeSync Integration for Home Assistant",
"description": "Custom component for Home Assistant to interact with smart devices via the VeSync platform.",
"data": {
"username": "[%key:common::config_flow::data::email%]",
"password": "[%key:common::config_flow::data::password%]",
"polling_interval": "Polling interval (seconds)"
}
},
"reauth_confirm": {
"title": "Reauthenticate with your VeSync credentials",
"data": {
"username": "[%key:common::config_flow::data::email%]",
"password": "[%key:common::config_flow::data::password%]",
"polling_interval": "Polling interval (seconds)"
}
}
},
"error": {
"invalid_auth": "[%key:common::config_flow::error::invalid_auth%]"
},
"abort": {
"already_configured": "VeSync account is already configured",
"reauth_successful": "Reauthentication was successful"
}
},
"abort": {
"already_configured": "VeSync account is already configured",
"reauth_successful": "Reauthentication was successful"
}
},
"options": {
"step": {
"vesync_options": {
"data": {
"polling_interval": "Polling interval (seconds)"
"options": {
"step": {
"vesync_options": {
"data": {
"polling_interval": "Polling interval (seconds)"
}
}
}
}
}
}
}
2 changes: 1 addition & 1 deletion custom_components/vesync/translations/bg.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@
}
}
}
}
}
2 changes: 1 addition & 1 deletion custom_components/vesync/translations/ca.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@
}
}
}
}
}
2 changes: 1 addition & 1 deletion custom_components/vesync/translations/cs.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@
}
}
}
}
}
2 changes: 1 addition & 1 deletion custom_components/vesync/translations/da.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@
}
}
}
}
}
2 changes: 1 addition & 1 deletion custom_components/vesync/translations/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@
}
}
}
}
}
2 changes: 1 addition & 1 deletion custom_components/vesync/translations/el.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@
}
}
}
}
}
12 changes: 6 additions & 6 deletions custom_components/vesync/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@
}
},
"options": {
"step": {
"vesync_options": {
"data": {
"polling_interval": "Polling interval (seconds)"
}
"step": {
"vesync_options": {
"data": {
"polling_interval": "Polling interval (seconds)"
}
}
}
}
}
}
2 changes: 1 addition & 1 deletion custom_components/vesync/translations/es-419.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@
}
}
}
}
}
2 changes: 1 addition & 1 deletion custom_components/vesync/translations/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@
}
}
}
}
}
2 changes: 1 addition & 1 deletion custom_components/vesync/translations/et.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@
}
}
}
}
}
2 changes: 1 addition & 1 deletion custom_components/vesync/translations/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@
}
}
}
}
}
2 changes: 1 addition & 1 deletion custom_components/vesync/translations/he.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@
}
}
}
}
}
2 changes: 1 addition & 1 deletion custom_components/vesync/translations/hu.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@
}
}
}
}
}
2 changes: 1 addition & 1 deletion custom_components/vesync/translations/id.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@
}
}
}
}
}
2 changes: 1 addition & 1 deletion custom_components/vesync/translations/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@
}
}
}
}
}
2 changes: 1 addition & 1 deletion custom_components/vesync/translations/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@
}
}
}
}
}
2 changes: 1 addition & 1 deletion custom_components/vesync/translations/ko.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@
}
}
}
}
}
2 changes: 1 addition & 1 deletion custom_components/vesync/translations/lb.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@
}
}
}
}
}
2 changes: 1 addition & 1 deletion custom_components/vesync/translations/lv.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@
}
}
}
}
}
2 changes: 1 addition & 1 deletion custom_components/vesync/translations/nl.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@
}
}
}
}
}
Loading
Loading