Skip to content

Commit

Permalink
opt
Browse files Browse the repository at this point in the history
  • Loading branch information
kellerza committed Oct 14, 2024
1 parent a7165eb commit fcd0a08
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
args: "format --check"

lint:
name: Check pylint, mypy
name: Check pylint
needs: [ruff]
runs-on: ubuntu-latest
steps:
Expand All @@ -50,7 +50,7 @@ jobs:
run: pylint src

mypy:
name: Check pylint, mypy
name: Check mypy
needs: [ruff]
runs-on: ubuntu-latest
steps:
Expand All @@ -70,7 +70,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12"]
python-version: ["3.10", "3.11"] # "3.12" needs a new aiohttp release
env:
PYTHON: ${{ matrix.python-version }}
steps:
Expand Down
4 changes: 2 additions & 2 deletions src/ha_addon_sunsynk_multi/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def unmarshal(target: object, json_data: dict) -> object:
_LOGGER.error("Invalid options format: %s", json_data)
return target

_lst = getattr(target, "_LISTS", {})
_lst = getattr(target, "_lists", {})

for key, val in json_data.items():
key = key.lower()
Expand Down Expand Up @@ -73,7 +73,7 @@ class InverterOptions:
class Options:
"""HASS Addon Options."""

_LISTS = {"inverters": InverterOptions, "schedules": Schedule}
_lists = {"inverters": InverterOptions, "schedules": Schedule}

mqtt_host: str = os.getenv("MQTT_HOST", "")
mqtt_port: int = int(os.getenv("MQTT_PORT", "0"))
Expand Down

0 comments on commit fcd0a08

Please sign in to comment.