Skip to content

Commit 35cbe30

Browse files
committed
Prek
1 parent 2409f17 commit 35cbe30

File tree

18 files changed

+278
-261
lines changed

18 files changed

+278
-261
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@
44
name: Test against HA-core
55

66
env:
7-
CACHE_VERSION: 1
8-
DEFAULT_PYTHON: "3.13"
9-
PRE_COMMIT_HOME: ~/.cache/pre-commit
7+
CACHE_VERSION: 2
8+
DEFAULT_PYTHON: "3.14"
109
VENV: venv
1110

1211
# Do not run on 'push' (as the flow doesn't have access to the labels) - also disabled workflow_dispatch as such
@@ -54,15 +53,14 @@ jobs:
5453
needs: cache
5554
name: Prepare
5655
steps:
57-
- name: Prepare code checkout and python/pre-commit setup
56+
- name: Prepare code checkout and python/prek/pre-commit setup
5857
id: cache-reuse
5958
uses: plugwise/gh-actions/prepare-python-and-code@v2
6059
with:
6160
cache-key: ${{ needs.cache.outputs.cache-key }}
6261
fail-on-miss: false # First time create cache (if not already exists)
6362
python-version: ${{ needs.cache.outputs.python-version }}
6463
venv-dir: ${{ env.VENV }}
65-
precommit-home: ${{ env.PRE_COMMIT_HOME }}
6664
clone-core: "true"
6765

6866
# Prepare default python version environment

.github/workflows/validate.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ jobs:
1414
runs-on: "ubuntu-latest"
1515
steps:
1616
- name: HACS validation
17-
uses: "hacs/action@dcb30e72781db3f207d5236b861172774ab0b485"
17+
uses: "hacs/action@main"
1818
with:
1919
category: "integration"

.markdownlint.yaml

Lines changed: 0 additions & 2 deletions
This file was deleted.

.pre-commit-config.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
default_language_version:
22
# force all unspecified python hooks to run python3
3-
python: python3.13
3+
python: python3.14
44

55
repos:
66
# Run manually in CI skipping the branch checks
@@ -78,8 +78,8 @@ repos:
7878
entry: ./scripts/local-testing.sh
7979
language: script
8080
pass_filenames: false
81-
- repo: https://github.com/igorshubovych/markdownlint-cli
82-
rev: v0.48.0
81+
- repo: https://github.com/jackdewinter/pymarkdown
82+
rev: v0.9.34
8383
hooks:
84-
- id: markdownlint
85-
name: "Linting Markdown"
84+
- id: pymarkdown
85+
name: "MarkDown Lint"

.pymarkdown

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{ "plugins": { "md013": { "enabled": false } } }

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## Ongoing
4+
5+
- Bump python to 3.14
6+
37
## v0.59.2
48

59
- Fix set_relay_init() function, improve _handle_coordinator_update() error-handling in all platform files

custom_components/plugwise_usb/binary_sensor.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
from homeassistant.const import EntityCategory, Platform
1717
from homeassistant.core import HomeAssistant, callback
1818
from homeassistant.helpers.entity_platform import AddEntitiesCallback
19-
from homeassistant.helpers.update_coordinator import UpdateFailed
2019

2120
from .const import NODES, STICK, UNSUB_NODE_LOADED
2221
from .coordinator import PlugwiseUSBConfigEntry

custom_components/plugwise_usb/coordinator.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,7 @@
1111

1212
from homeassistant.config_entries import ConfigEntry
1313
from homeassistant.core import HomeAssistant
14-
from homeassistant.helpers.update_coordinator import (
15-
ConfigEntryError,
16-
DataUpdateCoordinator,
17-
UpdateFailed,
18-
)
14+
from homeassistant.helpers.update_coordinator import DataUpdateCoordinator, UpdateFailed
1915

2016
from .const import STICK
2117

custom_components/plugwise_usb/event.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
from homeassistant.const import Platform
1717
from homeassistant.core import HomeAssistant, callback
1818
from homeassistant.helpers.entity_platform import AddEntitiesCallback
19-
from homeassistant.helpers.update_coordinator import UpdateFailed
2019

2120
from .const import NODES, STICK, UNSUB_NODE_LOADED
2221
from .coordinator import PlugwiseUSBConfigEntry, PlugwiseUSBDataUpdateCoordinator

custom_components/plugwise_usb/number.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
)
2323
from homeassistant.core import HomeAssistant, callback
2424
from homeassistant.helpers.entity_platform import AddEntitiesCallback
25-
from homeassistant.helpers.update_coordinator import UpdateFailed
2625

2726
from .const import NODES, STICK, UNSUB_NODE_LOADED
2827
from .coordinator import PlugwiseUSBConfigEntry, PlugwiseUSBDataUpdateCoordinator

0 commit comments

Comments
 (0)