meteocat 0.1.36 → 0.1.37

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,12 @@
1
+ ## [0.1.37](https://github.com/figorr/meteocat/compare/v0.1.36...v0.1.37) (2024-12-17)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * 0.1.37 ([1e850d8](https://github.com/figorr/meteocat/commit/1e850d8e77d0e572a0bfb8ba01702ab3acf0437f))
7
+ * fix hour attribute translation ([31ccc6f](https://github.com/figorr/meteocat/commit/31ccc6fc9a1a51c441935682cbdc1af07cc6af5f))
8
+ * fix wind directions ([23bbf44](https://github.com/figorr/meteocat/commit/23bbf4465c79107e5326fc107b23cf4a0c71c70c))
9
+
1
10
  ## [0.1.36](https://github.com/figorr/meteocat/compare/v0.1.35...v0.1.36) (2024-12-17)
2
11
 
3
12
 
@@ -20,7 +20,7 @@ from .const import DOMAIN, PLATFORMS
20
20
  _LOGGER = logging.getLogger(__name__)
21
21
 
22
22
  # Versión
23
- __version__ = "0.1.36"
23
+ __version__ = "0.1.37"
24
24
 
25
25
  def safe_remove(path: Path, is_folder: bool = False):
26
26
  """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.15", "packaging>=20.3", "wrapt>=1.14.0"],
11
- "version": "0.1.36"
11
+ "version": "0.1.37"
12
12
  }
@@ -478,7 +478,7 @@ class MeteocatSensor(CoordinatorEntity[MeteocatSensorCoordinator], SensorEntity)
478
478
 
479
479
  directions = [
480
480
  "N", "NNE", "NE", "ENE", "E", "ESE", "SE", "SSE",
481
- "S", "SSW", "SW", "WSW", "WO", "WNW", "NW", "NNW", "N",
481
+ "S", "SSW", "SW", "WSW", "W", "WNW", "NW", "NNW", "N",
482
482
  ]
483
483
  index = round(degree / 22.5) % 16
484
484
  return directions[index]
@@ -70,8 +70,10 @@
70
70
  },
71
71
  "uv_index": {
72
72
  "name": "UV Index",
73
- "attributes": {
74
- "hour": "Hour"
73
+ "state_attributes": {
74
+ "hour": {
75
+ "name": "Hour"
76
+ }
75
77
  }
76
78
  },
77
79
  "max_temperature": {
@@ -70,8 +70,10 @@
70
70
  },
71
71
  "uv_index": {
72
72
  "name": "UV Índex",
73
- "attributes": {
74
- "hour": "Hora"
73
+ "state_attributes": {
74
+ "hour": {
75
+ "name": "Hora"
76
+ }
75
77
  }
76
78
  },
77
79
  "max_temperature": {
@@ -70,8 +70,10 @@
70
70
  },
71
71
  "uv_index": {
72
72
  "name": "UV Index",
73
- "attributes": {
74
- "hour": "Hour"
73
+ "state_attributes": {
74
+ "hour": {
75
+ "name": "Hour"
76
+ }
75
77
  }
76
78
  },
77
79
  "max_temperature": {
@@ -70,8 +70,10 @@
70
70
  },
71
71
  "uv_index": {
72
72
  "name": "UV Índice",
73
- "attributes": {
74
- "hour": "Hora"
73
+ "state_attributes": {
74
+ "hour": {
75
+ "name": "Hora"
76
+ }
75
77
  }
76
78
  },
77
79
  "max_temperature": {
@@ -1,2 +1,2 @@
1
1
  # version.py
2
- __version__ = "0.1.36"
2
+ __version__ = "0.1.37"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "meteocat",
3
- "version": "0.1.36",
3
+ "version": "0.1.37",
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.36"
3
+ version = "0.1.37"
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"