meteocat 1.0.1 → 1.0.2
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
|
+
## [1.0.2](https://github.com/figorr/meteocat/compare/v1.0.1...v1.0.2) (2025-01-05)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* 1.0.2 ([8ec865b](https://github.com/figorr/meteocat/commit/8ec865b4d09e802bd489bc527dbfa74de5084cb7))
|
|
7
|
+
* include CONFIG_SCHEMA ([8911de2](https://github.com/figorr/meteocat/commit/8911de29c1804c63b79780f0bb057fdf3681eaec))
|
|
8
|
+
|
|
1
9
|
## [1.0.1](https://github.com/figorr/meteocat/compare/v1.0.0...v1.0.1) (2025-01-04)
|
|
2
10
|
|
|
3
11
|
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
from __future__ import annotations
|
|
2
2
|
|
|
3
3
|
import logging
|
|
4
|
+
import voluptuous as vol
|
|
4
5
|
from pathlib import Path
|
|
5
6
|
from homeassistant import core
|
|
6
7
|
from homeassistant.config_entries import ConfigEntry
|
|
7
8
|
from homeassistant.core import HomeAssistant
|
|
8
9
|
from homeassistant.exceptions import HomeAssistantError
|
|
9
10
|
from homeassistant.helpers.entity_platform import async_get_platforms
|
|
11
|
+
from homeassistant.helpers import config_validation as cv
|
|
10
12
|
|
|
11
13
|
from .coordinator import (
|
|
12
14
|
MeteocatSensorCoordinator,
|
|
@@ -25,7 +27,28 @@ from .const import DOMAIN, PLATFORMS
|
|
|
25
27
|
_LOGGER = logging.getLogger(__name__)
|
|
26
28
|
|
|
27
29
|
# Versión
|
|
28
|
-
__version__ = "1.0.
|
|
30
|
+
__version__ = "1.0.2"
|
|
31
|
+
|
|
32
|
+
# Definir el esquema de configuración CONFIG_SCHEMA
|
|
33
|
+
CONFIG_SCHEMA = vol.Schema(
|
|
34
|
+
{
|
|
35
|
+
DOMAIN: vol.Schema(
|
|
36
|
+
{
|
|
37
|
+
vol.Required("api_key"): cv.string,
|
|
38
|
+
vol.Required("town_name"): cv.string,
|
|
39
|
+
vol.Required("town_id"): cv.string,
|
|
40
|
+
vol.Optional("variable_name", default="temperature"): cv.string,
|
|
41
|
+
vol.Optional("station_name"): cv.string,
|
|
42
|
+
vol.Optional("station_id"): cv.string,
|
|
43
|
+
vol.Optional("province_name"): cv.string,
|
|
44
|
+
vol.Optional("province_id"): cv.string,
|
|
45
|
+
vol.Optional("region_name"): cv.string,
|
|
46
|
+
vol.Optional("region_id"): cv.string,
|
|
47
|
+
}
|
|
48
|
+
)
|
|
49
|
+
},
|
|
50
|
+
extra=vol.ALLOW_EXTRA,
|
|
51
|
+
)
|
|
29
52
|
|
|
30
53
|
def safe_remove(path: Path, is_folder: bool = False):
|
|
31
54
|
"""Elimina de forma segura un archivo o carpeta si existe."""
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
# version.py
|
|
2
|
-
__version__ = "1.0.
|
|
2
|
+
__version__ = "1.0.2"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "meteocat",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
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": {
|