From 9d5f25f2ef98fbbcb2ce838b383ea4269ba2d6d8 Mon Sep 17 00:00:00 2001 From: Elad Bar Date: Sun, 5 Nov 2023 12:40:47 +0200 Subject: [PATCH 1/2] fix pre commit --- .pre-commit-config.yaml | 22 +++++++++++----------- bandit.yaml | 1 - 2 files changed, 11 insertions(+), 12 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4c37306..4760ee4 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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.10.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: @@ -21,19 +21,19 @@ 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 + - pyflakes>=3.1.0 # - flake8-docstrings==1.6.0 # - pydocstyle==6.2.3 - flake8-comprehensions==3.10.1 @@ -41,7 +41,7 @@ repos: - mccabe==0.7.0 files: ^(custom_components)/.+\.py$ - repo: https://github.com/PyCQA/bandit - rev: 1.7.4 + rev: 1.7.5 hooks: - id: bandit args: @@ -54,7 +54,7 @@ repos: 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) @@ -63,10 +63,10 @@ repos: - id: trailing-whitespace - id: check-added-large-files - repo: https://github.com/adrienverge/yamllint.git - rev: v1.31.0 + rev: v1.32.0 hooks: - id: yamllint - repo: https://github.com/pre-commit/mirrors-prettier - rev: v3.0.0-alpha.4 + rev: v3.0.3 hooks: - id: prettier diff --git a/bandit.yaml b/bandit.yaml index 568f77d..46566cc 100644 --- a/bandit.yaml +++ b/bandit.yaml @@ -13,7 +13,6 @@ tests: - B318 - B319 - B320 - - B325 - B601 - B602 - B604 From 1f78851e4925a4e957ad5f6fb736b9b3583225b3 Mon Sep 17 00:00:00 2001 From: Elad Bar Date: Sun, 5 Nov 2023 12:43:46 +0200 Subject: [PATCH 2/2] update version --- CHANGELOG.md | 5 +++++ custom_components/shinobi/manifest.json | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0e7eb1b..d24911f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 3.0.5 + +- Fix missing camera when no snapshot available by @chemelli74 in https://github.com/elad-bar/ha-shinobi/pull/57 +- Fix Non-thread-safe operation invoked by @chemelli74 in https://github.com/elad-bar/ha-shinobi/pull/56 + ## 3.0.4 - Redact sensitive information from diagnostic file diff --git a/custom_components/shinobi/manifest.json b/custom_components/shinobi/manifest.json index 8bd966e..6c80604 100644 --- a/custom_components/shinobi/manifest.json +++ b/custom_components/shinobi/manifest.json @@ -9,5 +9,5 @@ "iot_class": "local_polling", "issue_tracker": "https://github.com/elad-bar/ha-shinobi/issues", "requirements": [], - "version": "3.0.4" + "version": "3.0.5" }