Skip to content

Commit

Permalink
Release 2024.2.1
Browse files Browse the repository at this point in the history
# Release 2024.2.1

## Added
- Nothing

## Updated
- Boto3 1.33.6 -> 1.34.34
- pycognito 2023.5.0 - > 2024.1.0
- Fix #162 change `ENERGY_KILO_WATT_HOUR` to `UnitOfEnergy.KILO_WATT_HOUR`

## Removed
- Nothing
  • Loading branch information
jobvk authored Feb 3, 2024
1 parent 912edb0 commit 1f01a25
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
18 changes: 9 additions & 9 deletions custom_components/windcentrale/const.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Constants for the Windcentrale integration."""
import datetime as dt
from homeassistant.components.sensor import SensorDeviceClass
from homeassistant.const import ENERGY_KILO_WATT_HOUR, Platform
from homeassistant.const import UnitOfEnergy, Platform

DOMAIN = "windcentrale"

Expand Down Expand Up @@ -43,14 +43,14 @@
# Format:
# Id: [Name, Unit Of Measurement, Device Class, Timeframe Type]
PRODUCTION_SENSOR_TYPES = {
"yeartotal": ["Production Year Total", ENERGY_KILO_WATT_HOUR, SensorDeviceClass.ENERGY, "YEAR3_YEARS"],
"monthtotal": ["Production Month Total", ENERGY_KILO_WATT_HOUR, SensorDeviceClass.ENERGY, "YEAR_MONTHS"],
"weektotal": ["Production Week Total", ENERGY_KILO_WATT_HOUR, SensorDeviceClass.ENERGY, "WEEK4_WEEKS"],
"daytotal": ["Production Day Total", ENERGY_KILO_WATT_HOUR, SensorDeviceClass.ENERGY, "MONTH_DAYS"],
"yearshares": ["Production Year Shares", ENERGY_KILO_WATT_HOUR, SensorDeviceClass.ENERGY, "YEAR3_YEARS"],
"monthshares": ["Production Month Shares", ENERGY_KILO_WATT_HOUR, SensorDeviceClass.ENERGY, "YEAR_MONTHS"],
"weekshares": ["Production Week Shares", ENERGY_KILO_WATT_HOUR, SensorDeviceClass.ENERGY, "WEEK4_WEEKS"],
"dayshares": ["Production Day Shares", ENERGY_KILO_WATT_HOUR, SensorDeviceClass.ENERGY, "MONTH_DAYS"]
"yeartotal": ["Production Year Total", UnitOfEnergy.KILO_WATT_HOUR, SensorDeviceClass.ENERGY, "YEAR3_YEARS"],
"monthtotal": ["Production Month Total", UnitOfEnergy.KILO_WATT_HOUR, SensorDeviceClass.ENERGY, "YEAR_MONTHS"],
"weektotal": ["Production Week Total", UnitOfEnergy.KILO_WATT_HOUR, SensorDeviceClass.ENERGY, "WEEK4_WEEKS"],
"daytotal": ["Production Day Total", UnitOfEnergy.KILO_WATT_HOUR, SensorDeviceClass.ENERGY, "MONTH_DAYS"],
"yearshares": ["Production Year Shares", UnitOfEnergy.KILO_WATT_HOUR, SensorDeviceClass.ENERGY, "YEAR3_YEARS"],
"monthshares": ["Production Month Shares", UnitOfEnergy.KILO_WATT_HOUR, SensorDeviceClass.ENERGY, "YEAR_MONTHS"],
"weekshares": ["Production Week Shares", UnitOfEnergy.KILO_WATT_HOUR, SensorDeviceClass.ENERGY, "WEEK4_WEEKS"],
"dayshares": ["Production Day Shares", UnitOfEnergy.KILO_WATT_HOUR, SensorDeviceClass.ENERGY, "MONTH_DAYS"]
}

class powerProducer:
Expand Down
4 changes: 2 additions & 2 deletions custom_components/windcentrale/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
"iot_class": "cloud_polling",
"issue_tracker": "https://github.com/jobvk/Home-Assistant-Windcentrale/issues",
"loggers": ["boto3"],
"requirements": ["boto3==1.34.18", "pycognito==2023.5.0"],
"version": "2023.12.1"
"requirements": ["boto3==1.34.34", "pycognito==2024.1.0"],
"version": "2024.2.1"
}
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
boto3==1.34.18
pycognito==2023.5.0
boto3==1.34.34
pycognito==2024.1.0

0 comments on commit 1f01a25

Please sign in to comment.