Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release v7.6.0 #460

Merged
merged 66 commits into from
Nov 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
66 commits
Select commit Hold shift + click to select a range
01bad94
Merge tag 'v7.5.0' into development
jabesq Jan 2, 2023
13bba4a
chore(deps): bump actions/setup-python from 4.4.0 to 4.5.0
dependabot[bot] Jan 12, 2023
a153e11
chore(deps): bump requests from 2.28.1 to 2.28.2
dependabot[bot] Jan 15, 2023
05712e6
chore(deps-dev): bump pylint from 2.15.9 to 2.15.10
dependabot[bot] Jan 15, 2023
42ac0d2
chore(deps-dev): bump pytest from 7.2.0 to 7.2.1
dependabot[bot] Jan 15, 2023
27a3b6a
chore(deps-dev): bump tox from 4.1.2 to 4.2.8
dependabot[bot] Jan 15, 2023
fd59dc8
chore(deps-dev): Bump dependencies
dependabot[bot] Jan 29, 2023
2412c89
ci: Fix GH action to publish to pypi
Mar 8, 2023
dcfd106
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Apr 11, 2023
dae1df4
chore(deps): Bump actions/setup-python from 4.5.0 to 4.6.0
dependabot[bot] Apr 20, 2023
a06bc3a
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] May 9, 2023
32d75f4
chore(deps): Bump actions/setup-python from 4.6.0 to 4.6.1
dependabot[bot] May 24, 2023
d251dae
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Jul 4, 2023
75c1ef7
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jul 4, 2023
86d4056
Add DeviceCategory for NACamDoorTag
rogerxaic Aug 13, 2023
074d926
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Aug 15, 2023
a5eaf7a
chore(deps): Bump actions/setup-python from 4.6.1 to 4.7.0
dependabot[bot] Jul 13, 2023
1f4048d
add method to modify schedule temperatures
Jan 8, 2023
18bf7e2
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 8, 2023
941d3eb
fix post api usage
Jan 9, 2023
d2bde67
use official API to modify schedule
Feb 19, 2023
988e3ba
remove print statement
Feb 19, 2023
6eb5880
remove git attributes
Feb 19, 2023
7e59977
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Feb 19, 2023
547bbb9
revert changes to thermostat
Feb 19, 2023
dd7a271
fix mypy errors
Feb 19, 2023
a7f1ac7
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Feb 19, 2023
1b0f077
Create CODE_OF_CONDUCT.md
jabesq Aug 21, 2023
923682c
Add Bticino MyHome Server 1 scopes
giogua Aug 30, 2023
d9394f3
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Aug 30, 2023
d44224c
wrap zones with list
Sep 3, 2023
85c432b
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Oct 3, 2023
28490cb
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 3, 2023
fa65cc4
Merge pull request #441 from giogua/patch-1
jabesq Oct 3, 2023
dda3ae4
Merge pull request #442 from wuede/development
jabesq Oct 3, 2023
a4def28
Merge pull request #439 from jabesq/pre-commit-ci-update-config
jabesq Oct 3, 2023
a62b53a
chore(deps): Bump actions/checkout from 3 to 4
dependabot[bot] Sep 4, 2023
5e4ae1e
chore(deps): Bump actions/setup-python from 4.7.0 to 4.7.1
dependabot[bot] Oct 2, 2023
d74fa26
Add important message
jabesq Oct 3, 2023
fbfa16a
Update README.md
jabesq Oct 3, 2023
76c3b8f
Drop Python 3.8 support
cgtobi Oct 6, 2023
16aa1b4
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 6, 2023
ee5ddf3
drop python 3.9 support
cgtobi Oct 6, 2023
ff27e9f
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 6, 2023
680fe3e
chore(deps-dev): Update bleach requirement from ~=6.0 to ~=6.1 (#449)
dependabot[bot] Oct 8, 2023
5b6d68f
Add ruff
cgtobi Oct 6, 2023
16c30a2
ruff auto-fix
cgtobi Oct 6, 2023
0fbe190
Refactor
cgtobi Oct 9, 2023
6a9ab3b
[pre-commit.ci] pre-commit autoupdate (#455)
pre-commit-ci[bot] Oct 10, 2023
43244e2
feat: add missing mixins
NatMarchand Oct 10, 2023
49dad0d
fix: fix query parameters serialization
NatMarchand Oct 10, 2023
d993819
Merge pull request #450 from jabesq/drop_python_38
jabesq Oct 10, 2023
14b5e29
Merge pull request #451 from jabesq/drop_python_39
jabesq Oct 10, 2023
b417728
Merge pull request #452 from jabesq/replace_tools_with_ruff
jabesq Oct 10, 2023
1e7702c
Add missing device classes and fallback
cgtobi Oct 6, 2023
85f6330
Merge pull request #456 from NatMarchand/feat/improvments
jabesq Oct 10, 2023
aa5db4e
Create CODEOWNERS
jabesq Oct 13, 2023
f8e76dd
Add NLPD - Drivia dry contact
cgtobi Oct 11, 2023
52d58c8
fix missing modules (#458)
cgtobi Oct 16, 2023
0e2c3dd
chore: update changelog
cgtobi Oct 19, 2023
73903a4
replace flake8 with ruff in gh action (#459)
cgtobi Oct 19, 2023
ba090e3
add _missing_ function to DeviceType class (#462)
jlabrous Oct 21, 2023
51c7e46
Add test for missing device type (#463)
cgtobi Oct 21, 2023
5b9b337
Add support for Legrand garage door opener (NLJ) (#464)
cgtobi Nov 1, 2023
cc3b150
Update CHANGELOG.md
cgtobi Nov 1, 2023
25c3628
Update CHANGELOG.md
cgtobi Nov 1, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ jobs:
name: Build and publish 📦 to PyPI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python 3.8
uses: actions/setup-python@v4.4.0
- name: Set up Python 3.10
uses: actions/setup-python@v4.7.1
with:
python-version: 3.8
python-version: 3.10.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand All @@ -30,6 +30,6 @@ jobs:
# password: ${{ secrets.PYPI_TEST_TOKEN }}
# repository_url: https://test.pypi.org/legacy/
- name: Publish 📦 to PyPI
uses: pypa/gh-action-pypi-publish@master
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.pypi_prod_token }}
10 changes: 5 additions & 5 deletions .github/workflows/publish-to-test-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ jobs:
name: Build and publish 📦 to TestPyPI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: development
fetch-depth: 0
- name: Set up Python 3.8
uses: actions/setup-python@v4.4.0
- name: Set up Python 3.10
uses: actions/setup-python@v4.7.1
with:
python-version: 3.8
python-version: 3.10.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand All @@ -28,7 +28,7 @@ jobs:
run: >-
python -m build .
- name: Publish 📦 to Test PyPI
uses: pypa/gh-action-pypi-publish@master
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_TEST_TOKEN }}
repository_url: https://test.pypi.org/legacy/
27 changes: 12 additions & 15 deletions .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ jobs:
strategy:
max-parallel: 1
matrix:
python-version: [3.10.8]
python-version: [3.11.4]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4.4.0
uses: actions/setup-python@v4.7.1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand All @@ -39,36 +39,33 @@ jobs:
strategy:
max-parallel: 4
matrix:
python-version: [3.10.8]
python-version: [3.11.4]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4.4.0
uses: actions/setup-python@v4.7.1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8
- name: Lint with flake8
pip install ruff
- name: Lint with ruff
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
ruff check src/pyatmo

build:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: [3.8, 3.9, 3.10.8]
python-version: [3.10.8, 3.11.4]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4.4.0
uses: actions/setup-python@v4.7.1
with:
python-version: ${{ matrix.python-version }}
- name: Run tests with tox
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release_gh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0

Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ target/
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock
Pipfile.lock

# celery beat schedule file
celerybeat-schedule
Expand Down
47 changes: 15 additions & 32 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,43 +2,42 @@
# "Version control integration" in README.md.
default_stages: [commit, push]
exclude: ^(fixtures/)
ci:
skip: [pylint]

repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.292
hooks:
- id: ruff
args:
- --fix

- repo: https://github.com/asottile/pyupgrade
rev: v3.3.1
rev: v3.15.0
hooks:
- id: pyupgrade
args: [--py38-plus]
args: [--py310-plus]
exclude: "external_src/int-tools"

- repo: https://github.com/asottile/add-trailing-comma
rev: v2.4.0
rev: v3.1.0
hooks:
- id: add-trailing-comma
args: [--py36-plus]
exclude: "external_src/int-tools"

- repo: https://github.com/asottile/yesqa
rev: v1.4.0
rev: v1.5.0
hooks:
- id: yesqa

- repo: https://github.com/psf/black
rev: 22.12.0
rev: 23.9.1
hooks:
- id: black
language_version: python3

- repo: https://github.com/pycqa/isort
rev: 5.11.4
hooks:
- id: isort
name: isort (python)

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.991
rev: v1.5.1
hooks:
- id: mypy
name: mypy
Expand All @@ -47,7 +46,7 @@ repos:
- types-requests

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0 # Use the ref you want to point at
rev: v4.5.0 # Use the ref you want to point at
hooks:
- id: check-ast
- id: no-commit-to-branch
Expand All @@ -62,24 +61,8 @@ repos:
- id: debug-statements
- id: check-toml

- repo: https://github.com/PyCQA/flake8
rev: 6.0.0 # pick a git hash / tag to point to
hooks:
- id: flake8
exclude: (otp)
additional_dependencies: [flake8-typing-imports==1.14.0]

- repo: https://github.com/asottile/setup-cfg-fmt
rev: v2.2.0
rev: v2.5.0
hooks:
- id: setup-cfg-fmt
args: [--include-version-classifiers]

- repo: local
hooks:
- id: pylint
name: pylint
entry: pylint src tests
language: system
types: [python]
require_serial: true
1 change: 1 addition & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
python 3.11.4
29 changes: 27 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

-

### Changed

Expand All @@ -31,6 +30,26 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

-

## [7.6.0]

### Added

- Opening category for NACamDoorTag
- Schedule modification
- Bticino MyHome Server 1 scopes
- NLPD - Drivia dry contact
- BTicino module stubs (functionality will come later)
cgtobi marked this conversation as resolved.
Show resolved Hide resolved
- support for Legrand garage door opener (NLJ)
- support for BTicino intelligent light (BNIL)

### Removed

- Support for Python 3.8 and 3.9

### Fixed

- Update functionality for NLP, NLC, NLT and NLG

## [7.5.0]

### Added
Expand Down Expand Up @@ -295,7 +314,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Fix crash when station name is not contained in the backend data

[unreleased]: https://github.com/jabesq/pyatmo/compare/v7.0.1...HEAD
[unreleased]: https://github.com/jabesq/pyatmo/compare/v7.5.0...HEAD
[7.5.0]: https://github.com/jabesq/pyatmo/compare/v7.4.0...v7.5.0
[7.4.0]: https://github.com/jabesq/pyatmo/compare/v7.3.0...v7.4.0
[7.3.0]: https://github.com/jabesq/pyatmo/compare/v7.2.0...v7.3.0
[7.2.0]: https://github.com/jabesq/pyatmo/compare/v7.1.1...v7.2.0
[7.1.1]: https://github.com/jabesq/pyatmo/compare/v7.1.0...v7.1.1
[7.1.0]: https://github.com/jabesq/pyatmo/compare/v7.0.1...v7.1.0
[7.0.1]: https://github.com/jabesq/pyatmo/compare/v7.0.0...v7.0.1
[7.0.0]: https://github.com/jabesq/pyatmo/compare/v6.2.4...v7.0.0
[6.2.4]: https://github.com/jabesq/pyatmo/compare/v6.2.2...v6.2.4
Expand Down
5 changes: 5 additions & 0 deletions CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# These owners will be the default owners for everything in
# the repo. Unless a later match takes precedence,
# @jabesq and @cgtobi will be requested for
# review when someone opens a pull request.
* @jabesq @cgtobi
Loading
Loading