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 8.0.1 #481

Merged
merged 13 commits into from
Dec 20, 2023
3 changes: 2 additions & 1 deletion .devcontainer/Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@ SHELL ["/bin/bash", "-o", "pipefail", "-c"]

WORKDIR /workspaces

COPY Pipfile Pipfile.lock ./
COPY Pipfile ./

# Create Python requirements files from pipenv (lockfile)
RUN pip3 install -U pip \
&& pip3 install pipenv \
&& pipenv lock \
&& pipenv requirements > /tmp/requirements.txt \
&& pipenv requirements --dev > /tmp/requirements_dev.txt

Expand Down
68 changes: 0 additions & 68 deletions .github/workflows/codeql-analysis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
with:
fetch-depth: 0
- name: Set up Python 3.10
uses: actions/setup-python@v4.7.1
uses: actions/setup-python@v5.0.0
with:
python-version: 3.10.8
- name: Install dependencies
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/publish-to-test-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
push:
branches:
- development
- master


jobs:
Expand All @@ -17,7 +16,7 @@ jobs:
ref: development
fetch-depth: 0
- name: Set up Python 3.10
uses: actions/setup-python@v4.7.1
uses: actions/setup-python@v5.0.0
with:
python-version: 3.10.8
- name: Install dependencies
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4.7.1
uses: actions/setup-python@v5.0.0
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand All @@ -44,7 +44,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4.7.1
uses: actions/setup-python@v5.0.0
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand All @@ -65,7 +65,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4.7.1
uses: actions/setup-python@v5.0.0
with:
python-version: ${{ matrix.python-version }}
- name: Run tests with tox
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ dist/
*.pyc
.DS_Store

archive/
access.token
cov.xml

Expand Down
51 changes: 0 additions & 51 deletions .pylintrc

This file was deleted.

81 changes: 69 additions & 12 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,33 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

-

### Changed

-

### Deprecated

-

### Removed

-

### Fixed

-

### Security

-

## [8.0.1]

### Added

- NLFE Legrand dimmer switch evolution

### Changed

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

-

## [8.0.0]

### Added

- Bticino IP scopes
- Bticino dimmable light (BNLD)
- Start and end times to room class

### Changed

- Add power data to NLPD entities

### Deprecated

-

### Removed

- deprecated code

### Fixed

-

### Security

-

## [7.6.0]

### Added
Expand Down Expand Up @@ -69,7 +124,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Add NLUF device stub
- Add TPSRS Somfy shutters


### Changed

- Update test fixture data to be in line with HA tests
Expand Down Expand Up @@ -128,11 +182,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Deprecated

- The following modules are deprecated and will be removed in pyatmo 8.0.0
- camera
- home_coach
- public_data
- thermostat
- weather_station
- camera
- home_coach
- public_data
- thermostat
- weather_station

## [7.0.0] - 2022-06-05

Expand All @@ -152,11 +206,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Deprecated

- The following modules are deprecated and will be removed in pyatmo 8.0.0
- camera
- home_coach
- public_data
- thermostat
- weather_station
- camera
- home_coach
- public_data
- thermostat
- weather_station

### Removed

Expand Down Expand Up @@ -314,7 +368,10 @@ 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.5.0...HEAD
[unreleased]: https://github.com/jabesq/pyatmo/compare/v8.0.1...HEAD
[8.0.1]: https://github.com/jabesq/pyatmo/compare/v8.0.0...v8.0.1
[8.0.0]: https://github.com/jabesq/pyatmo/compare/v7.6.0...v8.0.0
[7.6.0]: https://github.com/jabesq/pyatmo/compare/v7.5.0...v7.6.0
[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
Expand Down
22 changes: 8 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
pyatmo
======
# pyatmo

[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black)
[![GitHub Actions](https://github.com/jabesq/pyatmo/workflows/Python%20package/badge.svg)](https://github.com/jabesq/pyatmo/actions?workflow=Python+package)
Expand All @@ -11,16 +10,14 @@ pyatmo
>
> I apologize for any inconvenience this may cause, and I sincerely hope to have the capacity to allocate more time to this repository in the near future. Your understanding is greatly appreciated.

***

---

Simple API to access Netatmo devices and data like weather station or camera data from Python 3.
For more detailed information see [dev.netatmo.com](http://dev.netatmo.com)

This project has no relation with the Netatmo company.

Install
-------
## Install

To install pyatmo simply run:

Expand All @@ -31,14 +28,12 @@ Once installed you can simply add `pyatmo` to your Python 3 scripts by including

import pyatmo

Note
----
## Note

The module requires a valid user account and a registered application. See [usage.md](./usage.md) for further information.
The module requires a valid user account and a registered application.
Be aware that the module may stop working if Netatmo decides to change their API.

Development
-----------
## Development

Clone the repo and install dependencies:

Expand All @@ -51,8 +46,7 @@ To add the pre-commit hook to your environment run:
pip install pre-commit
pre-commit install

Testing
-------
## Testing

To run the full suite simply run the following command from within the virtual environment:

Expand All @@ -64,7 +58,7 @@ or

To generate code coverage xml (e.g. for use in VSCode) run

python -m pytest --cov-report xml:cov.xml --cov smart_home --cov-append tests/
python -m pytest --cov-report xml:cov.xml --cov pyatmo --cov-append tests/

Another way to run the tests is by using `tox`. This runs the tests against the installed package and multiple versions of python.

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
"message": "failed to connect to server [localhost:27020] on first connect [MongoError: connect ECONNREFUSED 127.0.0.1:27020]",
"code": 0
}
}
}
Loading
Loading