meteocat 0.1.51 → 1.0.1

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,21 @@
1
+ ## [1.0.1](https://github.com/figorr/meteocat/compare/v1.0.0...v1.0.1) (2025-01-04)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * 1.0.1 ([c2f56d7](https://github.com/figorr/meteocat/commit/c2f56d7243649cf48ce1a1d84761c05762832e8c))
7
+ * fix directions translation key ([3545d7c](https://github.com/figorr/meteocat/commit/3545d7cee8662462de4a3ed3c164d9d4a7e5e854))
8
+ * fix hacs.json file removing iot_class ([03d3db0](https://github.com/figorr/meteocat/commit/03d3db08beb94a5d7c92aa0960a6ff627256e88a))
9
+ * fix order in manifest.json ([434e3d5](https://github.com/figorr/meteocat/commit/434e3d50a5369a5a7c9deda0130a691d5e71b991))
10
+ * fix wind direction translation keys ([3a73291](https://github.com/figorr/meteocat/commit/3a73291d803b72890d627eeb5814be17d22ab6b4))
11
+
12
+ ## [1.0.0](https://github.com/figorr/meteocat/compare/v0.1.51...v1.0.0) (2025-01-04)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * 1.0.0 ([a1ec6cf](https://github.com/figorr/meteocat/commit/a1ec6cf411dcb208eeb153b00b73bf9f766d7f23))
18
+
1
19
  ## [0.1.51](https://github.com/figorr/meteocat/compare/v0.1.50...v0.1.51) (2025-01-04)
2
20
 
3
21
 
@@ -25,7 +25,7 @@ from .const import DOMAIN, PLATFORMS
25
25
  _LOGGER = logging.getLogger(__name__)
26
26
 
27
27
  # Versión
28
- __version__ = "1.0.0"
28
+ __version__ = "1.0.1"
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."""
@@ -4,10 +4,10 @@
4
4
  "codeowners": ["@figorr"],
5
5
  "config_flow": true,
6
6
  "dependencies": ["persistent_notification", "http"],
7
- "iot_class": "cloud_polling",
8
7
  "documentation": "https://github.com/figorr/meteocat",
8
+ "iot_class": "cloud_polling",
9
9
  "issue_tracker": "https://github.com/figorr/meteocat/issues",
10
10
  "loggers": ["meteocatpy"],
11
11
  "requirements": ["meteocatpy==0.0.17", "packaging>=20.3", "wrapt>=1.14.0"],
12
- "version": "1.0.0"
12
+ "version": "1.0.1"
13
13
  }
@@ -719,8 +719,8 @@ class MeteocatSensor(CoordinatorEntity[MeteocatSensorCoordinator], SensorEntity)
719
719
  return "Unknown" # Retorna "Unknown" si el valor no es un número válido
720
720
 
721
721
  directions = [
722
- "N", "NNE", "NE", "ENE", "E", "ESE", "SE", "SSE",
723
- "S", "SSW", "SW", "WSW", "W", "WNW", "NW", "NNW", "N",
722
+ "north", "north_northeast", "northeast", "east_northeast", "east", "east_southeast", "southeast", "south_southeast",
723
+ "south", "south_southwest", "southwest", "west_southwest", "west", "west_northwest", "northwest", "north_northwest", "north",
724
724
  ]
725
725
  index = round(degree / 22.5) % 16
726
726
  return directions[index]
@@ -31,22 +31,22 @@
31
31
  "wind_direction": {
32
32
  "name": "Wind Direction",
33
33
  "state": {
34
- "N": "NN",
35
- "NNE": "NNE",
36
- "NE": "NE",
37
- "ENE": "ENE",
38
- "E": "E",
39
- "ESE": "ESE",
40
- "SE": "SE",
41
- "SSE": "SSE",
42
- "S": "S",
43
- "SSW": "SSW",
44
- "SW": "SW",
45
- "WSW": "WSW",
46
- "W": "W",
47
- "WNW": "WNW",
48
- "NW": "NW",
49
- "NNW": "NNW",
34
+ "north": "N",
35
+ "north_northeast": "NNE",
36
+ "northeast": "NE",
37
+ "east_northeast": "ENE",
38
+ "east": "E",
39
+ "east_southeast": "ESE",
40
+ "southeast": "SE",
41
+ "south_southeast": "SSE",
42
+ "south": "S",
43
+ "south_southwest": "SSW",
44
+ "southwest": "SW",
45
+ "west_southwest": "WSW",
46
+ "west": "W",
47
+ "west_northwest": "WNW",
48
+ "northwest": "NW",
49
+ "north_northwest": "NNW",
50
50
  "unknown": "Unknown"
51
51
  },
52
52
  "state_attributes": {
@@ -31,22 +31,22 @@
31
31
  "wind_direction": {
32
32
  "name": "Vent Direcció",
33
33
  "state": {
34
- "N": "NN",
35
- "NNE": "NNE",
36
- "NE": "NE",
37
- "ENE": "ENE",
38
- "E": "E",
39
- "ESE": "ESE",
40
- "SE": "SE",
41
- "SSE": "SSE",
42
- "S": "S",
43
- "SSW": "SSO",
44
- "SW": "SO",
45
- "WSW": "OSO",
46
- "W": "O",
47
- "WNW": "ONO",
48
- "NW": "NO",
49
- "NNW": "NNO",
34
+ "north": "N",
35
+ "north_northeast": "NNE",
36
+ "northeast": "NE",
37
+ "east_northeast": "ENE",
38
+ "east": "E",
39
+ "east_southeast": "ESE",
40
+ "southeast": "SE",
41
+ "south_southeast": "SSE",
42
+ "south": "S",
43
+ "south_southwest": "SSO",
44
+ "southwest": "SO",
45
+ "west_southwest": "OSO",
46
+ "west": "O",
47
+ "west_northwest": "ONO",
48
+ "northwest": "NO",
49
+ "north_northwest": "NNO",
50
50
  "unknown": "Desconegut"
51
51
  },
52
52
  "state_attributes": {
@@ -31,22 +31,22 @@
31
31
  "wind_direction": {
32
32
  "name": "Wind Direction",
33
33
  "state": {
34
- "N": "NN",
35
- "NNE": "NNE",
36
- "NE": "NE",
37
- "ENE": "ENE",
38
- "E": "E",
39
- "ESE": "ESE",
40
- "SE": "SE",
41
- "SSE": "SSE",
42
- "S": "S",
43
- "SSW": "SSW",
44
- "SW": "SW",
45
- "WSW": "WSW",
46
- "W": "W",
47
- "WNW": "WNW",
48
- "NW": "NW",
49
- "NNW": "NNW",
34
+ "north": "N",
35
+ "north_northeast": "NNE",
36
+ "northeast": "NE",
37
+ "east_northeast": "ENE",
38
+ "east": "E",
39
+ "east_southeast": "ESE",
40
+ "southeast": "SE",
41
+ "south_southeast": "SSE",
42
+ "south": "S",
43
+ "south_southwest": "SSW",
44
+ "southwest": "SW",
45
+ "west_southwest": "WSW",
46
+ "west": "W",
47
+ "west_northwest": "WNW",
48
+ "northwest": "NW",
49
+ "north_northwest": "NNW",
50
50
  "unknown": "Unknown"
51
51
  },
52
52
  "state_attributes": {
@@ -31,22 +31,22 @@
31
31
  "wind_direction": {
32
32
  "name": "Viento Dirección",
33
33
  "state": {
34
- "N": "NN",
35
- "NNE": "NNE",
36
- "NE": "NE",
37
- "ENE": "ENE",
38
- "E": "E",
39
- "ESE": "ESE",
40
- "SE": "SE",
41
- "SSE": "SSE",
42
- "S": "S",
43
- "SSW": "SSO",
44
- "SW": "SO",
45
- "WSW": "OSO",
46
- "W": "O",
47
- "WNW": "ONO",
48
- "NW": "NO",
49
- "NNW": "NNO",
34
+ "north": "N",
35
+ "north_northeast": "NNE",
36
+ "northeast": "NE",
37
+ "east_northeast": "ENE",
38
+ "east": "E",
39
+ "east_southeast": "ESE",
40
+ "southeast": "SE",
41
+ "south_southeast": "SSE",
42
+ "south": "S",
43
+ "south_southwest": "SSO",
44
+ "southwest": "SO",
45
+ "west_southwest": "OSO",
46
+ "west": "O",
47
+ "west_northwest": "ONO",
48
+ "northwest": "NO",
49
+ "north_northwest": "NNO",
50
50
  "unknown": "Desconocido"
51
51
  },
52
52
  "state_attributes": {
@@ -1,2 +1,2 @@
1
1
  # version.py
2
- __version__ = "1.0.0"
2
+ __version__ = "1.0.1"
package/hacs.json CHANGED
@@ -1,6 +1,5 @@
1
1
  {
2
2
  "name": "Meteocat",
3
- "render_readme": true,
4
- "iot_class": "cloud_polling"
3
+ "render_readme": true
5
4
  }
6
5
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "meteocat",
3
- "version": "0.1.51",
3
+ "version": "1.0.1",
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 = "1.0.0"
3
+ version = "1.0.1"
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"