Skip to content

Commit

Permalink
Merge pull request #116 from elad-bar/breaking-changes-ha-2024-01
Browse files Browse the repository at this point in the history
Adjust code to HA 2024.1.0
  • Loading branch information
elad-bar authored Dec 29, 2023
2 parents 62e66ac + 08957a0 commit b4bb56a
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 19 deletions.
31 changes: 16 additions & 15 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
repos:
- repo: https://github.com/asottile/pyupgrade
rev: v3.3.1
rev: v3.15.0
hooks:
- id: pyupgrade
args: [--py39-plus]
- repo: https://github.com/psf/black
rev: 23.1.0
rev: 23.12.1
hooks:
- id: black
args:
- --quiet
files: ^((custom_components)/.+)?[^/]+\.py$
- repo: https://github.com/codespell-project/codespell
rev: v2.2.2
rev: v2.2.6
hooks:
- id: codespell
args:
Expand All @@ -21,27 +21,27 @@ repos:
- --quiet-level=2
exclude_types: [csv, json]
- repo: https://github.com/PyCQA/autoflake
rev: v2.0.1
rev: v2.2.1
hooks:
- id: autoflake
args:
- --in-place
- --remove-all-unused-imports
- repo: https://github.com/PyCQA/flake8
rev: 6.0.0
rev: 6.1.0
hooks:
- id: flake8
additional_dependencies:
- pycodestyle==2.10.0
- pyflakes==3.0.1
- pycodestyle>=2.10.0
- pyflakes>=3.0.1
# - flake8-docstrings==1.6.0
# - pydocstyle==6.2.3
- flake8-comprehensions==3.10.1
- flake8-noqa==1.3.0
- mccabe==0.7.0
- flake8-comprehensions>=3.10.1
- flake8-noqa>=1.3.0
- mccabe>=0.7.0
files: ^(custom_components)/.+\.py$
- repo: https://github.com/PyCQA/bandit
rev: 1.7.4
rev: 1.7.6
hooks:
- id: bandit
args:
Expand All @@ -50,11 +50,11 @@ repos:
- --configfile=bandit.yaml
files: ^(custom_components)/.+\.py$
- repo: https://github.com/PyCQA/isort
rev: 5.12.0
rev: 5.13.2
hooks:
- id: isort
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.5.0
hooks:
- id: check-json
exclude: (.vscode|.devcontainer)
Expand All @@ -63,10 +63,11 @@ repos:
- id: trailing-whitespace
- id: check-added-large-files
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.28.0
rev: v1.33.0
hooks:
- id: yamllint
exclude: (.yamllint)
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.0-alpha.4
rev: v3.0.3
hooks:
- id: prettier
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## 2.0.29

_Minimum HA Version: 2024.1.0_

- Adjust code to HA 2024.1.0
- Update pre-commit packages

## 2.0.28

- Fix 'TOTAL_INCREASING' for rate sensors by [@Dude4Linux](https://github.com/Dude4Linux)
Expand Down
1 change: 0 additions & 1 deletion bandit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ tests:
- B318
- B319
- B320
- B325
- B601
- B602
- B604
Expand Down
2 changes: 1 addition & 1 deletion custom_components/edgeos/core/models/vacuum_description.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from homeassistant.components.vacuum import StateVacuumEntityDescription


@dataclass
@dataclass(frozen=True, kw_only=True)
class VacuumDescription(StateVacuumEntityDescription):
"""A class that describes vacuum entities."""

Expand Down
2 changes: 1 addition & 1 deletion custom_components/edgeos/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
"iot_class": "local_polling",
"issue_tracker": "https://github.com/elad-bar/ha-edgeos/issues",
"requirements": ["aiohttp"],
"version": "2.0.28"
"version": "2.0.29"
}
2 changes: 1 addition & 1 deletion hacs.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "EdgeOS (Ubiquiti)",
"iot_class": "Local Polling",
"homeassistant": "2022.11.0"
"homeassistant": "2024.1.0"
}

0 comments on commit b4bb56a

Please sign in to comment.