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 +18 -0
- package/custom_components/meteocat/__init__.py +1 -1
- package/custom_components/meteocat/manifest.json +2 -2
- package/custom_components/meteocat/sensor.py +2 -2
- package/custom_components/meteocat/strings.json +16 -16
- package/custom_components/meteocat/translations/ca.json +16 -16
- package/custom_components/meteocat/translations/en.json +16 -16
- package/custom_components/meteocat/translations/es.json +16 -16
- package/custom_components/meteocat/version.py +1 -1
- package/hacs.json +1 -2
- package/package.json +1 -1
- package/pyproject.toml +1 -1
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.
|
|
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.
|
|
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
|
-
|
|
723
|
-
|
|
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
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
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
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
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
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
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
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
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.
|
|
2
|
+
__version__ = "1.0.1"
|
package/hacs.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "meteocat",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "[](https://opensource.org/licenses/Apache-2.0)\r [](https://pypi.org/project/meteocat)\r [](https://gitlab.com/figorr/meteocat/commits/master)",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"directories": {
|