Skip to content

Commit

Permalink
Cleanup project (#1461)
Browse files Browse the repository at this point in the history
* Use py 3.12 for mypy and pylint

* Remove python 3.11 for github tests and pylint
  • Loading branch information
SukramJ authored Mar 13, 2024
1 parent cbaefbf commit 99b5bb7
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pylint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11", "3.12"]
python-version: ["3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-run.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11", "3.12"]
python-version: ["3.12"]
steps:
- name: Set Timezone
uses: szenius/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# hahomematic

`hahomematic` is a Python 3 (>= 3.11) module for [Home Assistant](https://www.home-assistant.io/) to interact with [HomeMatic](https://www.eq-3.com/products/homematic.html) and [HomematicIP](https://www.homematic-ip.com/en/start.html) devices. Some other devices (f.ex. Bosch, Intertechno) might be supported as well.
`hahomematic` is a Python 3 module for [Home Assistant](https://www.home-assistant.io/) to interact with [HomeMatic](https://www.eq-3.com/products/homematic.html) and [HomematicIP](https://www.homematic-ip.com/en/start.html) devices. Some other devices (f.ex. Bosch, Intertechno) might be supported as well.

This is intended to become the successor of [pyhomematic](https://github.com/danielperna84/pyhomematic).

Expand Down
5 changes: 5 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# Version 2024.3.3 (2024-03-13)

- Remove python 3.11 for github tests and pylint
- Use py 3.12 for mypy and pylint

# Version 2024.3.1 (2024-03-12)

- Add additional parameter to HBW-LC4-IN4-DR
Expand Down
2 changes: 1 addition & 1 deletion hahomematic/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
hahomematic is a Python 3 (>= 3.11) module for Home Assistant.
hahomematic is a Python 3 module for Home Assistant.
The lib interacts with HomeMatic and HomematicIP devices.
https://github.com/danielperna84/hahomematic
Expand Down
4 changes: 2 additions & 2 deletions hahomematic/central/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from __future__ import annotations

import asyncio
from collections.abc import Awaitable, Callable, Coroutine, Mapping, Set
from collections.abc import Callable, Coroutine, Mapping, Set
from concurrent.futures._base import CancelledError
from datetime import datetime
import logging
Expand Down Expand Up @@ -908,7 +908,7 @@ def remove_event_subscription(self, entity: BaseEntity) -> None:
):
del self._entity_event_subscriptions[(entity.channel_address, entity.parameter)]

def create_task(self, target: Awaitable, name: str) -> None:
def create_task(self, target: Coroutine[Any, Any, Any], name: str) -> None:
"""Add task to the executor pool."""
try:
self._loop.call_soon_threadsafe(self._async_create_task, target, name)
Expand Down
2 changes: 1 addition & 1 deletion mypy.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[mypy]
python_version = 3.11
python_version = 3.12
show_error_codes = true
follow_imports = silent
ignore_missing_imports = true
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "hahomematic"
version = "2024.3.1"
version = "2024.3.2"
license = {text = "MIT License"}
description = "Homematic interface for Home Assistant running on Python 3."
readme = "README.md"
Expand Down Expand Up @@ -53,7 +53,7 @@ exclude = ["tests", "tests.*", "dist", "build"]
hahomematic = ["py.typed", "rega_scripts/*.fn"]

[tool.pylint.MAIN]
py-version = "3.11"
py-version = "3.12"
ignore = [
"tests",
]
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
aiohttp>=3.9.2
orjson>=3.9.10
orjson>=3.9.13
python-slugify>=8.0.1
voluptuous>=0.13.1

0 comments on commit 99b5bb7

Please sign in to comment.