mirror of
https://github.com/micahqcade/custom_vesync.git
synced 2025-03-11 23:30:11 +01:00
add missing files from previous repo
This commit is contained in:
parent
79938b9f19
commit
68350b8f3e
2
.gitattributes
vendored
Normal file
2
.gitattributes
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
# Auto detect text files and perform LF normalization
|
||||
* text=auto
|
6
.github/pr-labeler.yml
vendored
Normal file
6
.github/pr-labeler.yml
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
feature: ['feature/*', 'feat/*']
|
||||
enhancement: enhancement/*
|
||||
bug: fix/*
|
||||
breaking: breaking/*
|
||||
documentation: doc/*
|
||||
backport: '*backport*'
|
23
.github/release-drafter.yml
vendored
Normal file
23
.github/release-drafter.yml
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
name-template: 'v$NEXT_PATCH_VERSION'
|
||||
tag-template: 'v$NEXT_PATCH_VERSION'
|
||||
exclude-labels:
|
||||
- 'Meta: Exclude From Changelog'
|
||||
- 'auto-changelog'
|
||||
categories:
|
||||
- title: '⤽ Backport from Core'
|
||||
label: 'backport'
|
||||
- title: '⚠️ Breaking changes'
|
||||
label: 'breaking'
|
||||
- title: '🚀 Features'
|
||||
label: 'feature'
|
||||
- title: '✨ Enhancement'
|
||||
label: 'enhancement'
|
||||
- title: '📘 Documentation'
|
||||
label: 'documentation'
|
||||
- title: '🐛 Bug Fixes'
|
||||
label: 'bug'
|
||||
template: |
|
||||
## What's changed
|
||||
$CHANGES
|
||||
## Contributors to this release
|
||||
$CONTRIBUTORS
|
13
.github/workflows/hassfest.yml
vendored
Normal file
13
.github/workflows/hassfest.yml
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
name: Validate with hassfest
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
schedule:
|
||||
- cron: '0 0 * * *'
|
||||
|
||||
jobs:
|
||||
validate:
|
||||
runs-on: "ubuntu-latest"
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: home-assistant/actions/hassfest@master
|
12
.github/workflows/linters.yml
vendored
Normal file
12
.github/workflows/linters.yml
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
name: Linters (flake8, black, isort)
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-python@v2
|
||||
- uses: pre-commit/action@v2.0.0
|
18
.github/workflows/matchers/python.json
vendored
Normal file
18
.github/workflows/matchers/python.json
vendored
Normal file
@ -0,0 +1,18 @@
|
||||
{
|
||||
"problemMatcher": [
|
||||
{
|
||||
"owner": "python",
|
||||
"pattern": [
|
||||
{
|
||||
"regexp": "^\\s*File\\s\\\"(.*)\\\",\\sline\\s(\\d+),\\sin\\s(.*)$",
|
||||
"file": 1,
|
||||
"line": 2
|
||||
},
|
||||
{
|
||||
"regexp": "^\\s*raise\\s(.*)\\(\\'(.*)\\'\\)$",
|
||||
"message": 2
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
12
.github/workflows/pr-labeler.yml
vendored
Normal file
12
.github/workflows/pr-labeler.yml
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
name: PR Labeler
|
||||
on:
|
||||
pull_request_target:
|
||||
types: [opened]
|
||||
|
||||
jobs:
|
||||
pr-labeler:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: TimonVS/pr-labeler-action@v3
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
15
.github/workflows/release-drafter.yml
vendored
Normal file
15
.github/workflows/release-drafter.yml
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
name: Release Drafter
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
update_release_draft:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Update release draft
|
||||
uses: release-drafter/release-drafter@v5
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
27
.github/workflows/stale.yml
vendored
Normal file
27
.github/workflows/stale.yml
vendored
Normal file
@ -0,0 +1,27 @@
|
||||
name: Mark stale issues and pull requests
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: "30 1 * * *"
|
||||
|
||||
jobs:
|
||||
stale:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/stale@v3
|
||||
with:
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
stale-issue-message: >
|
||||
'There hasn't been any activity on this issue recently. Is this issue still present?
|
||||
|
||||
Please make sure to update to the latest Home Assistant version and version of this integration to see
|
||||
if that solves the issue. Let us know if that works for you by adding a
|
||||
comment 👍.
|
||||
|
||||
This issue now has been marked as stale and will be closed if no further
|
||||
activity occurs. Thank you for your contributions.'
|
||||
days-before-stale: 30
|
||||
days-before-close: 30
|
||||
stale-issue-label: 'no-issue-activity'
|
||||
exempt-issue-labels: 'work-in-progress,blocked,help wanted,under investigation'
|
17
.github/workflows/validate.yml
vendored
Normal file
17
.github/workflows/validate.yml
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
name: Validate
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
schedule:
|
||||
- cron: "0 0 * * *"
|
||||
|
||||
jobs:
|
||||
validate:
|
||||
runs-on: "ubuntu-latest"
|
||||
steps:
|
||||
- uses: "actions/checkout@v2"
|
||||
- name: HACS validation
|
||||
uses: "hacs/action@main"
|
||||
with:
|
||||
category: "integration"
|
||||
comment: false
|
4
.gitignore
vendored
Normal file
4
.gitignore
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
.venv
|
||||
Config/
|
||||
.vscode/
|
||||
**/__pycache__/
|
8
.gitpod.Dockerfile
vendored
Normal file
8
.gitpod.Dockerfile
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
FROM gitpod/workspace-full:latest
|
||||
|
||||
USER gitpod
|
||||
|
||||
RUN pyenv install 3.9.7 &&\
|
||||
pyenv global 3.9.7 &&\
|
||||
echo "export PIP_USER=no" >> /home/gitpod/.bashrc &&\
|
||||
python -m pip install virtualenv
|
29
.gitpod.yml
Normal file
29
.gitpod.yml
Normal file
@ -0,0 +1,29 @@
|
||||
image:
|
||||
file: .gitpod.Dockerfile
|
||||
tasks:
|
||||
- name: Requirements
|
||||
init: |
|
||||
python -m virtualenv .venv
|
||||
. .venv/bin/activate
|
||||
pip3 install pre-commit
|
||||
pre-commit install
|
||||
pre-commit run --all-files
|
||||
pip3 install -r requirements_dev.txt
|
||||
ports:
|
||||
- port: 9123
|
||||
onOpen: notify
|
||||
github:
|
||||
prebuilds:
|
||||
master: true
|
||||
branches: false
|
||||
pullRequests: true
|
||||
pullRequestsFromForks: true
|
||||
addCheck: true
|
||||
addComment: false
|
||||
addBadge: false
|
||||
vscode:
|
||||
extensions:
|
||||
- esbenp.prettier-vscode
|
||||
- github.vscode-pull-request-github
|
||||
- eamodio.gitlens
|
||||
- ms-python.python
|
40
.pre-commit-config.yaml
Normal file
40
.pre-commit-config.yaml
Normal file
@ -0,0 +1,40 @@
|
||||
repos:
|
||||
- repo: https://github.com/asottile/pyupgrade
|
||||
rev: v2.31.1
|
||||
hooks:
|
||||
- id: pyupgrade
|
||||
args: [--py37-plus]
|
||||
- repo: https://github.com/psf/black
|
||||
rev: 22.3.0
|
||||
hooks:
|
||||
- id: black
|
||||
additional_dependencies: ['click==8.0.4']
|
||||
args:
|
||||
- --safe
|
||||
- --quiet
|
||||
files: ^((custom_components)/.+)?[^/]+\.py$
|
||||
- repo: https://github.com/codespell-project/codespell
|
||||
rev: v2.1.0
|
||||
hooks:
|
||||
- id: codespell
|
||||
args:
|
||||
- --ignore-words-list=threshHold,hass,alot,datas,dof,dur,farenheit,hist,iff,ines,ist,lightsensor,mut,nd,pres,referer,ser,serie,te,technik,ue,uint,visability,wan,wanna,withing
|
||||
- --skip="./.*,*.csv,*.json,*.md"
|
||||
- --quiet-level=2
|
||||
exclude_types: [csv, json]
|
||||
- repo: https://gitlab.com/pycqa/flake8
|
||||
rev: 3.9.2
|
||||
hooks:
|
||||
- id: flake8
|
||||
additional_dependencies:
|
||||
- flake8-docstrings==1.5.0
|
||||
- pydocstyle==5.1.1
|
||||
files: ^(custom_components)/.+\.py$
|
||||
- repo: https://github.com/PyCQA/isort
|
||||
rev: 5.10.1
|
||||
hooks:
|
||||
- id: isort
|
||||
- repo: https://github.com/adrienverge/yamllint.git
|
||||
rev: v1.26.3
|
||||
hooks:
|
||||
- id: yamllint
|
61
.yamllint
Normal file
61
.yamllint
Normal file
@ -0,0 +1,61 @@
|
||||
ignore: |
|
||||
.github
|
||||
rules:
|
||||
braces:
|
||||
level: error
|
||||
min-spaces-inside: 0
|
||||
max-spaces-inside: 1
|
||||
min-spaces-inside-empty: -1
|
||||
max-spaces-inside-empty: -1
|
||||
brackets:
|
||||
level: error
|
||||
min-spaces-inside: 0
|
||||
max-spaces-inside: 0
|
||||
min-spaces-inside-empty: -1
|
||||
max-spaces-inside-empty: -1
|
||||
colons:
|
||||
level: error
|
||||
max-spaces-before: 0
|
||||
max-spaces-after: 1
|
||||
commas:
|
||||
level: error
|
||||
max-spaces-before: 0
|
||||
min-spaces-after: 1
|
||||
max-spaces-after: 1
|
||||
comments:
|
||||
level: error
|
||||
require-starting-space: true
|
||||
min-spaces-from-content: 2
|
||||
comments-indentation:
|
||||
level: error
|
||||
document-end:
|
||||
level: error
|
||||
present: false
|
||||
document-start:
|
||||
level: error
|
||||
present: false
|
||||
empty-lines:
|
||||
level: error
|
||||
max: 1
|
||||
max-start: 0
|
||||
max-end: 1
|
||||
hyphens:
|
||||
level: error
|
||||
max-spaces-after: 1
|
||||
indentation:
|
||||
level: error
|
||||
spaces: 2
|
||||
indent-sequences: true
|
||||
check-multi-line-strings: false
|
||||
key-duplicates:
|
||||
level: error
|
||||
line-length: disable
|
||||
new-line-at-end-of-file:
|
||||
level: error
|
||||
new-lines:
|
||||
level: error
|
||||
type: unix
|
||||
trailing-spaces:
|
||||
level: error
|
||||
truthy:
|
||||
level: warning
|
Loading…
x
Reference in New Issue
Block a user