meteocat 0.1.25 → 0.1.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/release.yml +33 -33
- package/.pre-commit-config.yaml +37 -37
- package/.releaserc +23 -23
- package/.releaserc.toml +14 -14
- package/AUTHORS.md +12 -12
- package/CHANGELOG.md +414 -401
- package/README.md +40 -40
- package/custom_components/meteocat/__init__.py +136 -107
- package/custom_components/meteocat/condition.py +28 -28
- package/custom_components/meteocat/config_flow.py +192 -192
- package/custom_components/meteocat/const.py +55 -55
- package/custom_components/meteocat/coordinator.py +194 -195
- package/custom_components/meteocat/entity.py +98 -98
- package/custom_components/meteocat/helpers.py +42 -42
- package/custom_components/meteocat/manifest.json +12 -12
- package/custom_components/meteocat/options_flow.py +71 -71
- package/custom_components/meteocat/sensor.py +325 -303
- package/custom_components/meteocat/strings.json +25 -25
- package/custom_components/meteocat/translations/ca.json +25 -25
- package/custom_components/meteocat/translations/en.json +25 -25
- package/custom_components/meteocat/translations/es.json +25 -25
- package/custom_components/meteocat/version.py +2 -2
- package/filetree.py +48 -48
- package/filetree.txt +46 -46
- package/hacs.json +5 -5
- package/package.json +22 -22
- package/poetry.lock +3216 -3216
- package/pyproject.toml +64 -64
- package/releaserc.json +17 -17
- package/requirements.test.txt +3 -3
- package/setup.cfg +64 -64
- package/setup.py +10 -10
- package/tests/bandit.yaml +17 -17
- package/tests/conftest.py +19 -19
- package/tests/test_init.py +9 -9
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
name: Release
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches:
|
|
6
|
-
- master
|
|
7
|
-
|
|
8
|
-
jobs:
|
|
9
|
-
release:
|
|
10
|
-
name: Create Release
|
|
11
|
-
runs-on: ubuntu-latest
|
|
12
|
-
|
|
13
|
-
steps:
|
|
14
|
-
# Paso 1: Configurar el repositorio
|
|
15
|
-
- name: Checkout repository
|
|
16
|
-
uses: actions/checkout@v3
|
|
17
|
-
|
|
18
|
-
# Paso 2: Configurar Node.js (requerido para semantic-release)
|
|
19
|
-
- name: Set up Node.js
|
|
20
|
-
uses: actions/setup-node@v3
|
|
21
|
-
with:
|
|
22
|
-
node-version: 20.8.1 # Versión compatible con semantic-release
|
|
23
|
-
|
|
24
|
-
# Paso 3: Instalar dependencias necesarias
|
|
25
|
-
- name: Install dependencies
|
|
26
|
-
run: npm ci
|
|
27
|
-
|
|
28
|
-
# Paso 4: Ejecutar semantic-release
|
|
29
|
-
- name: Run semantic-release
|
|
30
|
-
env:
|
|
31
|
-
GITHUB_TOKEN: ${{ secrets.WORKFLOW_TOKEN }}
|
|
32
|
-
NPM_TOKEN: ${{ secrets.NPM_WORKFLOW }}
|
|
33
|
-
run: npx semantic-release
|
|
1
|
+
name: Release
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- master
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
release:
|
|
10
|
+
name: Create Release
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
|
|
13
|
+
steps:
|
|
14
|
+
# Paso 1: Configurar el repositorio
|
|
15
|
+
- name: Checkout repository
|
|
16
|
+
uses: actions/checkout@v3
|
|
17
|
+
|
|
18
|
+
# Paso 2: Configurar Node.js (requerido para semantic-release)
|
|
19
|
+
- name: Set up Node.js
|
|
20
|
+
uses: actions/setup-node@v3
|
|
21
|
+
with:
|
|
22
|
+
node-version: 20.8.1 # Versión compatible con semantic-release
|
|
23
|
+
|
|
24
|
+
# Paso 3: Instalar dependencias necesarias
|
|
25
|
+
- name: Install dependencies
|
|
26
|
+
run: npm ci
|
|
27
|
+
|
|
28
|
+
# Paso 4: Ejecutar semantic-release
|
|
29
|
+
- name: Run semantic-release
|
|
30
|
+
env:
|
|
31
|
+
GITHUB_TOKEN: ${{ secrets.WORKFLOW_TOKEN }}
|
|
32
|
+
NPM_TOKEN: ${{ secrets.NPM_WORKFLOW }}
|
|
33
|
+
run: npx semantic-release
|
package/.pre-commit-config.yaml
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
repos:
|
|
2
|
-
- repo: https://github.com/asottile/pyupgrade
|
|
3
|
-
rev: v3.15.2
|
|
4
|
-
hooks:
|
|
5
|
-
- id: pyupgrade
|
|
6
|
-
args: [--py37-plus]
|
|
7
|
-
- repo: https://github.com/psf/black
|
|
8
|
-
rev: 24.4.2
|
|
9
|
-
hooks:
|
|
10
|
-
- id: black
|
|
11
|
-
args:
|
|
12
|
-
- --safe
|
|
13
|
-
- --quiet
|
|
14
|
-
files: ^((homeassistant|script|tests)/.+)?[^/]+\.py$
|
|
15
|
-
- repo: https://github.com/codespell-project/codespell
|
|
16
|
-
rev: v2.2.6
|
|
17
|
-
hooks:
|
|
18
|
-
- id: codespell
|
|
19
|
-
args:
|
|
20
|
-
- --ignore-words-list=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
|
|
21
|
-
- --skip="./.*,*.csv,*.json"
|
|
22
|
-
- --quiet-level=2
|
|
23
|
-
exclude_types: [csv, json]
|
|
24
|
-
- repo: https://github.com/charliermarsh/ruff-pre-commit
|
|
25
|
-
rev: v0.4.8
|
|
26
|
-
hooks:
|
|
27
|
-
- id: ruff
|
|
28
|
-
args: [--fix, --exit-non-zero-on-fix]
|
|
29
|
-
- id: ruff-format
|
|
30
|
-
- repo: https://github.com/pre-commit/mirrors-mypy
|
|
31
|
-
rev: v1.10.0
|
|
32
|
-
hooks:
|
|
33
|
-
- id: mypy
|
|
34
|
-
args:
|
|
35
|
-
- --pretty
|
|
36
|
-
- --show-error-codes
|
|
37
|
-
- --show-error-context
|
|
1
|
+
repos:
|
|
2
|
+
- repo: https://github.com/asottile/pyupgrade
|
|
3
|
+
rev: v3.15.2
|
|
4
|
+
hooks:
|
|
5
|
+
- id: pyupgrade
|
|
6
|
+
args: [--py37-plus]
|
|
7
|
+
- repo: https://github.com/psf/black
|
|
8
|
+
rev: 24.4.2
|
|
9
|
+
hooks:
|
|
10
|
+
- id: black
|
|
11
|
+
args:
|
|
12
|
+
- --safe
|
|
13
|
+
- --quiet
|
|
14
|
+
files: ^((homeassistant|script|tests)/.+)?[^/]+\.py$
|
|
15
|
+
- repo: https://github.com/codespell-project/codespell
|
|
16
|
+
rev: v2.2.6
|
|
17
|
+
hooks:
|
|
18
|
+
- id: codespell
|
|
19
|
+
args:
|
|
20
|
+
- --ignore-words-list=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
|
|
21
|
+
- --skip="./.*,*.csv,*.json"
|
|
22
|
+
- --quiet-level=2
|
|
23
|
+
exclude_types: [csv, json]
|
|
24
|
+
- repo: https://github.com/charliermarsh/ruff-pre-commit
|
|
25
|
+
rev: v0.4.8
|
|
26
|
+
hooks:
|
|
27
|
+
- id: ruff
|
|
28
|
+
args: [--fix, --exit-non-zero-on-fix]
|
|
29
|
+
- id: ruff-format
|
|
30
|
+
- repo: https://github.com/pre-commit/mirrors-mypy
|
|
31
|
+
rev: v1.10.0
|
|
32
|
+
hooks:
|
|
33
|
+
- id: mypy
|
|
34
|
+
args:
|
|
35
|
+
- --pretty
|
|
36
|
+
- --show-error-codes
|
|
37
|
+
- --show-error-context
|
package/.releaserc
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
{
|
|
2
|
-
"branches": ["master"],
|
|
3
|
-
"plugins": [
|
|
4
|
-
"@semantic-release/commit-analyzer",
|
|
5
|
-
"@semantic-release/release-notes-generator",
|
|
6
|
-
[
|
|
7
|
-
"@semantic-release/changelog",
|
|
8
|
-
{
|
|
9
|
-
"changelogFile": "CHANGELOG.md"
|
|
10
|
-
}
|
|
11
|
-
],
|
|
12
|
-
"@semantic-release/npm",
|
|
13
|
-
"@semantic-release/github",
|
|
14
|
-
[
|
|
15
|
-
"@semantic-release/git",
|
|
16
|
-
{
|
|
17
|
-
"assets": ["CHANGELOG.md", "package.json", "pyproject.toml"],
|
|
18
|
-
"message": "v${nextRelease.version}\n\n${nextRelease.notes}"
|
|
19
|
-
}
|
|
20
|
-
]
|
|
21
|
-
],
|
|
22
|
-
"repositoryUrl": "https://github.com/figorr/meteocat"
|
|
23
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"branches": ["master"],
|
|
3
|
+
"plugins": [
|
|
4
|
+
"@semantic-release/commit-analyzer",
|
|
5
|
+
"@semantic-release/release-notes-generator",
|
|
6
|
+
[
|
|
7
|
+
"@semantic-release/changelog",
|
|
8
|
+
{
|
|
9
|
+
"changelogFile": "CHANGELOG.md"
|
|
10
|
+
}
|
|
11
|
+
],
|
|
12
|
+
"@semantic-release/npm",
|
|
13
|
+
"@semantic-release/github",
|
|
14
|
+
[
|
|
15
|
+
"@semantic-release/git",
|
|
16
|
+
{
|
|
17
|
+
"assets": ["CHANGELOG.md", "package.json", "pyproject.toml"],
|
|
18
|
+
"message": "v${nextRelease.version}\n\n${nextRelease.notes}"
|
|
19
|
+
}
|
|
20
|
+
]
|
|
21
|
+
],
|
|
22
|
+
"repositoryUrl": "https://github.com/figorr/meteocat"
|
|
23
|
+
}
|
package/.releaserc.toml
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
branches = ["master"]
|
|
2
|
-
|
|
3
|
-
[plugins]
|
|
4
|
-
"@semantic-release/gitlab" = {}
|
|
5
|
-
"@semantic-release/github" = {}
|
|
6
|
-
"@semantic-release/changelog" = {}
|
|
7
|
-
"@semantic-release/commit-analyzer" = { preset = "conventional" }
|
|
8
|
-
"@semantic-release/release-notes-generator" = {}
|
|
9
|
-
"@semantic-release/git" = {}
|
|
10
|
-
|
|
11
|
-
[[plugins]]
|
|
12
|
-
path = "@semantic-release/git"
|
|
13
|
-
assets = ["meteocat/version.py"]
|
|
14
|
-
message = "chore(release): update version to ${nextRelease.version}"
|
|
1
|
+
branches = ["master"]
|
|
2
|
+
|
|
3
|
+
[plugins]
|
|
4
|
+
"@semantic-release/gitlab" = {}
|
|
5
|
+
"@semantic-release/github" = {}
|
|
6
|
+
"@semantic-release/changelog" = {}
|
|
7
|
+
"@semantic-release/commit-analyzer" = { preset = "conventional" }
|
|
8
|
+
"@semantic-release/release-notes-generator" = {}
|
|
9
|
+
"@semantic-release/git" = {}
|
|
10
|
+
|
|
11
|
+
[[plugins]]
|
|
12
|
+
path = "@semantic-release/git"
|
|
13
|
+
assets = ["meteocat/version.py"]
|
|
14
|
+
message = "chore(release): update version to ${nextRelease.version}"
|
package/AUTHORS.md
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
# Contributions to `meteocat`
|
|
2
|
-
|
|
3
|
-
## Owners
|
|
4
|
-
|
|
5
|
-
- Figorr [GitLab](https://gitlab.com/figorr) [GitHub](https://github.com/figorr)
|
|
6
|
-
|
|
7
|
-
## Maintainers
|
|
8
|
-
|
|
9
|
-
- Figorr [GitLab](https://gitlab.com/figorr) [GitHub](https://github.com/figorr)
|
|
10
|
-
|
|
11
|
-
## Contributors
|
|
12
|
-
|
|
1
|
+
# Contributions to `meteocat`
|
|
2
|
+
|
|
3
|
+
## Owners
|
|
4
|
+
|
|
5
|
+
- Figorr [GitLab](https://gitlab.com/figorr) [GitHub](https://github.com/figorr)
|
|
6
|
+
|
|
7
|
+
## Maintainers
|
|
8
|
+
|
|
9
|
+
- Figorr [GitLab](https://gitlab.com/figorr) [GitHub](https://github.com/figorr)
|
|
10
|
+
|
|
11
|
+
## Contributors
|
|
12
|
+
|