meteocat 0.1.49 → 0.1.50

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## [0.1.50](https://github.com/figorr/meteocat/compare/v0.1.49...v0.1.50) (2025-01-04)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * 0.1.50 ([cbfc022](https://github.com/figorr/meteocat/commit/cbfc0228195762f7af306a85db4c03b287cd3c24))
7
+ * fix precipitation unit ([9e6d5aa](https://github.com/figorr/meteocat/commit/9e6d5aa85ce3450341d70e2edff9a13880c69a89))
8
+
1
9
  ## [0.1.49](https://github.com/figorr/meteocat/compare/v0.1.48...v0.1.49) (2025-01-03)
2
10
 
3
11
 
@@ -25,7 +25,7 @@ from .const import DOMAIN, PLATFORMS
25
25
  _LOGGER = logging.getLogger(__name__)
26
26
 
27
27
  # Versión
28
- __version__ = "0.1.49"
28
+ __version__ = "0.1.50"
29
29
 
30
30
  def safe_remove(path: Path, is_folder: bool = False):
31
31
  """Elimina de forma segura un archivo o carpeta si existe."""
@@ -8,5 +8,5 @@
8
8
  "documentation": "https://gitlab.com/figorr/meteocat",
9
9
  "loggers": ["meteocatpy"],
10
10
  "requirements": ["meteocatpy==0.0.17", "packaging>=20.3", "wrapt>=1.14.0"],
11
- "version": "0.1.49"
11
+ "version": "0.1.50"
12
12
  }
@@ -23,6 +23,7 @@ from homeassistant.const import (
23
23
  UnitOfPressure,
24
24
  UnitOfSpeed,
25
25
  UnitOfTemperature,
26
+ UnitOfPrecipitationDepth,
26
27
  UnitOfVolumetricFlux,
27
28
  UnitOfIrradiance,
28
29
  )
@@ -134,9 +135,9 @@ SENSOR_TYPES: tuple[MeteocatSensorEntityDescription, ...] = (
134
135
  key=PRECIPITATION,
135
136
  translation_key="precipitation",
136
137
  icon="mdi:weather-rainy",
137
- device_class=None,
138
+ device_class=SensorDeviceClass.PRECIPITATION,
138
139
  state_class=SensorStateClass.MEASUREMENT,
139
- native_unit_of_measurement=UnitOfVolumetricFlux.MILLIMETERS_PER_HOUR,
140
+ native_unit_of_measurement="mm",
140
141
  ),
141
142
  MeteocatSensorEntityDescription(
142
143
  key=PRECIPITATION_ACCUMULATED,
@@ -1,2 +1,2 @@
1
1
  # version.py
2
- __version__ = "0.1.49"
2
+ __version__ = "0.1.50"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "meteocat",
3
- "version": "0.1.49",
3
+ "version": "0.1.50",
4
4
  "description": "[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\r [![Python version compatibility](https://img.shields.io/pypi/pyversions/meteocat)](https://pypi.org/project/meteocat)\r [![pipeline status](https://gitlab.com/figorr/meteocat/badges/master/pipeline.svg)](https://gitlab.com/figorr/meteocat/commits/master)",
5
5
  "main": "index.js",
6
6
  "directories": {
package/pyproject.toml CHANGED
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "meteocat"
3
- version = "0.1.49"
3
+ version = "0.1.50"
4
4
  description = "Script para obtener datos meteorológicos de la API de Meteocat"
5
5
  authors = ["figorr <jdcuartero@yahoo.es>"]
6
6
  license = "Apache-2.0"