Skip to content

Commit 2a939bb

Browse files
authored
Merge pull request #70 from caiosweet/codex/fix-ghiaggio-spelling-in-api.py
Fix typo: replace 'ghiaggio' with 'ghiaccio' in GELATE descriptions
2 parents ecf5a47 + f9dec1e commit 2a939bb

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

custom_components/dpc/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import asyncio
1010
from datetime import timedelta
1111

12+
import homeassistant.helpers.config_validation as cv
1213
from homeassistant.config_entries import ConfigEntry
1314
from homeassistant.const import (
1415
CONF_LATITUDE,
@@ -34,6 +35,8 @@
3435
STARTUP_MESSAGE,
3536
)
3637

38+
CONFIG_SCHEMA = cv.config_entry_only_config_schema(DOMAIN)
39+
3740

3841
async def async_setup(hass: HomeAssistant, config: Config):
3942
"""Set up this integration using YAML is not supported."""

custom_components/dpc/api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,8 @@
129129
13: "frequenti raffiche",
130130
},
131131
"GELATE": {
132-
20: "diffusa formazione di ghiaggio al suolo a quote collinari",
133-
21: "diffusa formazione di ghiaggio al suolo a quote di pianura",
132+
20: "diffusa formazione di ghiaccio al suolo a quote collinari",
133+
21: "diffusa formazione di ghiaccio al suolo a quote di pianura",
134134
},
135135
"NEBBIE": {
136136
30: "diffuse nelle ore notturne e del primo mattino",

custom_components/dpc/string.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"step": {
2525
"user": {
2626
"title": "DPC Options",
27-
"description": "Minimum level of warning.: 1 (green/no warning), 2 (yellow / ordinary), 3 (orange / moderate), 4 (red / high). By selecting the minimum alert level, the sensor will be active only if the level is greater or equal to the one chosen. ",
27+
"description": "Minimum level of warning.: 1 (green/no warning), 2 (yellow / ordinary), 3 (orange / moderate), 4 (red / high). By selecting the minimum alert level, the sensor will be active only if the level is greater or equal to the one chosen.",
2828
"data": {
2929
"binary_sensor": "Binary sensor enabled",
3030
"sensor": "Sensor enabled",
@@ -36,4 +36,4 @@
3636
}
3737
}
3838
}
39-
}
39+
}

custom_components/dpc/translations/en.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"step": {
2525
"user": {
2626
"title": "DPC Options",
27-
"description": "Minimum level of warning.: 1 (green/no warning), 2 (yellow / ordinary), 3 (orange / moderate), 4 (red / high). By selecting the minimum alert level, the sensor will be active only if the level is greater or equal to the one chosen. ",
27+
"description": "Minimum level of warning.: 1 (green/no warning), 2 (yellow / ordinary), 3 (orange / moderate), 4 (red / high). By selecting the minimum alert level, the sensor will be active only if the level is greater or equal to the one chosen.",
2828
"data": {
2929
"binary_sensor": "Binary sensor enabled",
3030
"sensor": "Sensor enabled",
@@ -36,4 +36,4 @@
3636
}
3737
}
3838
}
39-
}
39+
}

0 commit comments

Comments
 (0)