Skip to content

Commit

Permalink
Release: v1.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
kugan49 committed Sep 30, 2024
1 parent 3472ad2 commit 4ad6d73
Show file tree
Hide file tree
Showing 7 changed files with 51 additions and 45 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/push-pull.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
name: Check style formatting
steps:
- uses: "actions/checkout@v4"
- uses: "actions/setup-python@v4"
- uses: "actions/setup-python@v5"
with:
python-version: "3.x"
- run: python3 -m pip install black
Expand Down
61 changes: 29 additions & 32 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,34 +1,31 @@
{
"editor.formatOnPaste": false,
"editor.formatOnSave": true,
"python.formatting.provider": "black",
"python.formatting.blackArgs": [
"--line-length",
"120"
],
"python.linting.lintOnSave": true,
"python.linting.enabled": true,
"python.linting.pylintEnabled": false,
"python.linting.pylintPath": ".venv\\Scripts\\pylint",
"python.linting.pylintArgs": [
"--load-plugins",
"--enable=W0614",
"--enable= W0611"
],
"[python]": {
"editor.tabSize": 4,
"editor.codeActionsOnSave": {
"source.organizeImports": true
}
},
"files.exclude": {
".venv": true,
"**/__pycache__": true,
},
"python.linting.flake8Enabled": true,
"python.analysis.typeCheckingMode": "off",
"todo-tree.tree.scanMode": "workspace",
"files.associations": {
"*.yaml": "home-assistant"
"editor.formatOnPaste": false,
"editor.formatOnSave": true,
"python.formatting.provider": "black",
"python.formatting.blackArgs": ["--line-length", "120"],
"python.linting.lintOnSave": true,
"python.linting.enabled": true,
"python.linting.pylintEnabled": false,
"python.linting.pylintPath": ".venv\\Scripts\\pylint",
"python.linting.pylintArgs": [
"--load-plugins",
"--enable=W0614",
"--enable= W0611"
],
"[python]": {
"editor.tabSize": 4,
"editor.codeActionsOnSave": {
"source.organizeImports": "explicit"
}
}
},
"files.exclude": {
".venv": true,
"**/__pycache__": true
},
"python.linting.flake8Enabled": true,
"python.analysis.typeCheckingMode": "off",
"todo-tree.tree.scanMode": "workspace",
"files.associations": {
"*.yaml": "home-assistant"
}
}
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

All notable changes to this project will be documented in this file.

## v1.3.1

### Changed

- Mise à jour des dépendances
- Mise à jour fonctions dépréciées par home assistant

## v1.3.0

### Changed
Expand Down
7 changes: 2 additions & 5 deletions custom_components/veolia/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Custom integration to integrate Veolia with Home Assistant.
"""

import asyncio
from datetime import timedelta
import logging
Expand Down Expand Up @@ -46,12 +47,8 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry):

hass.data[DOMAIN][entry.entry_id] = coordinator

for platform in PLATFORMS:
if entry.options.get(platform, True):
coordinator.platforms.append(platform)
hass.async_add_job(hass.config_entries.async_forward_entry_setup(entry, platform))
await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)

entry.async_on_unload(entry.add_update_listener(async_reload_entry))
return True


Expand Down
5 changes: 3 additions & 2 deletions custom_components/veolia/entity.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""VeoliaEntity class."""

from homeassistant.components.sensor import SensorDeviceClass, SensorEntity
from homeassistant.const import VOLUME_LITERS
from homeassistant.const import UnitOfVolume
from homeassistant.helpers.update_coordinator import CoordinatorEntity

from .const import ATTRIBUTION, DAILY, DOMAIN, HISTORY, ICON, NAME
Expand Down Expand Up @@ -40,7 +41,7 @@ def device_class(self):
@property
def unit_of_measurement(self):
"""Return the unit_of_measurement of the sensor."""
return VOLUME_LITERS
return UnitOfVolume.LITERS

@property
def icon(self):
Expand Down
12 changes: 8 additions & 4 deletions custom_components/veolia/manifest.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
{
"domain": "veolia",
"name": "Veolia",
"codeowners": ["@kugan49"],
"codeowners": [
"@kugan49"
],
"config_flow": true,
"dependencies": [],
"documentation": "https://github.com/kugan49/veolia-custom-component-HACS",
"integration_type": "device",
"iot_class": "cloud_polling",
"issue_tracker": "https://github.com/kugan49/veolia-custom-component-HACS/issues",
"requirements": ["xmltodict==0.13.0"],
"version": "1.3.0"
}
"requirements": [
"xmltodict==0.13.0"
],
"version": "1.3.1"
}
2 changes: 1 addition & 1 deletion requirements_test.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pytest-homeassistant-custom-component==0.13.57
pytest-homeassistant-custom-component==0.13.88

0 comments on commit 4ad6d73

Please sign in to comment.