[pre-commit.ci] pre-commit autoupdate (#882)

* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/astral-sh/ruff-pre-commit: v0.1.6 → v0.2.0](https://github.com/astral-sh/ruff-pre-commit/compare/v0.1.6...v0.2.0)
- [github.com/psf/black: 23.11.0 → 24.1.1](https://github.com/psf/black/compare/23.11.0...24.1.1)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
pre-commit-ci[bot] 2024-02-05 14:13:13 -08:00 committed by GitHub
commit 95a59438b6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
17 changed files with 45 additions and 28 deletions

View file

@ -1,4 +1,5 @@
"""Update strings.json and en.json from const.py."""
import json
import sys
from pathlib import Path
@ -8,7 +9,7 @@ import yaml
sys.path.append(str(Path(__file__).parent.parent))
from custom_components.adaptive_lighting import const # noqa: E402
from custom_components.adaptive_lighting import const
folder = Path("custom_components") / "adaptive_lighting"
strings_fname = folder / "strings.json"