Skip to content

Commit

Permalink
Merge pull request #1502 from folfy/bugfix/HmIP_naming
Browse files Browse the repository at this point in the history
fixed typos HomaticIP -> HomematicIP
  • Loading branch information
KartoffelToby authored Jan 3, 2025
2 parents 08d1a9a + ee888bf commit 37de82b
Show file tree
Hide file tree
Showing 12 changed files with 35 additions and 35 deletions.
8 changes: 4 additions & 4 deletions custom_components/better_thermostat/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
CONF_CHILD_LOCK,
CONF_HEAT_AUTO_SWAPPED,
CONF_HEATER,
CONF_HOMATICIP,
CONF_HOMEMATICIP,
CONF_HUMIDITY,
CONF_MODEL,
CONF_NO_SYSTEM_MODE_OFF,
Expand Down Expand Up @@ -246,7 +246,7 @@ async def async_step_advanced(self, user_input=None, _trv_config=None):
] = bool
fields[
vol.Optional(
CONF_HOMATICIP, default=user_input.get(CONF_HOMATICIP, homematic)
CONF_HOMEMATICIP, default=user_input.get(CONF_HOMEMATICIP, homematic)
)
] = bool

Expand Down Expand Up @@ -523,8 +523,8 @@ async def async_step_advanced(
] = bool
fields[
vol.Optional(
CONF_HOMATICIP,
default=_trv_config["advanced"].get(CONF_HOMATICIP, homematic),
CONF_HOMEMATICIP,
default=_trv_config["advanced"].get(CONF_HOMEMATICIP, homematic),
)
] = bool

Expand Down
4 changes: 2 additions & 2 deletions custom_components/better_thermostat/events/temperature.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import logging

from custom_components.better_thermostat.utils.const import CONF_HOMATICIP
from custom_components.better_thermostat.utils.const import CONF_HOMEMATICIP
from ..utils.helpers import convert_to_float
from datetime import datetime

Expand Down Expand Up @@ -40,7 +40,7 @@ async def trigger_temperature_change(self, event):

try:
for trv in self.all_trvs:
if trv["advanced"][CONF_HOMATICIP]:
if trv["advanced"][CONF_HOMEMATICIP]:
_time_diff = 600
except KeyError:
pass
Expand Down
6 changes: 3 additions & 3 deletions custom_components/better_thermostat/events/trv.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import asyncio
from datetime import datetime
import logging
from custom_components.better_thermostat.utils.const import CONF_HOMATICIP
from custom_components.better_thermostat.utils.const import CONF_HOMEMATICIP

from homeassistant.components.climate.const import (
HVACMode,
Expand Down Expand Up @@ -75,7 +75,7 @@ async def trigger_trv_change(self, event):
_time_diff = 5
try:
for trv in self.all_trvs:
if trv["advanced"][CONF_HOMATICIP]:
if trv["advanced"][CONF_HOMEMATICIP]:
_time_diff = 600
except KeyError:
pass
Expand Down Expand Up @@ -227,7 +227,7 @@ async def update_hvac_action(self):

# i don't know why this is here just for hometicip / wtom - 2023-08-23
# for trv in self.all_trvs:
# if trv["advanced"][CONF_HOMATICIP]:
# if trv["advanced"][CONF_HOMEMATICIP]:
# entity_id = trv["trv"]
# state = self.hass.states.get(entity_id)
# if state is None:
Expand Down
6 changes: 3 additions & 3 deletions custom_components/better_thermostat/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"protect_overheating": "Overheating protection?",
"heat_auto_swapped": "If the auto means heat for your TRV and you want to swap it",
"child_lock": "Ignore all inputs on the TRV like a child lock",
"homaticip": "If you use HomaticIP, you should enable this to slow down the requests to prevent the duty cycle",
"homematicip": "If you use HomematicIP, you should enable this to slow down the requests to prevent the duty cycle",
"valve_maintenance": "If your thermostat has no own maintenance mode, you can use this one",
"calibration": "Calibration Type",
"calibration_mode": "Calibration mode",
Expand Down Expand Up @@ -72,7 +72,7 @@
"weather": "Your weather entity to get the outdoor temperature",
"heat_auto_swapped": "If the auto means heat for your TRV and you want to swap it",
"child_lock": "Ignore all inputs on the TRV like a child lock",
"homaticip": "If you use HomaticIP, you should enable this to slow down the requests to prevent the duty cycle"
"homematicip": "If you use HomematicIP, you should enable this to slow down the requests to prevent the duty cycle"
}
},
"advanced": {
Expand All @@ -81,7 +81,7 @@
"protect_overheating": "Overheating protection?",
"heat_auto_swapped": "If the auto means heat for your TRV and you want to swap it",
"child_lock": "Ignore all inputs on the TRV like a child lock",
"homaticip": "If you use HomaticIP, you should enable this to slow down the requests to prevent the duty cycle",
"homematicip": "If you use HomematicIP, you should enable this to slow down the requests to prevent the duty cycle",
"valve_maintenance": "If your thermostat has no own maintenance mode, you can use this one",
"calibration": "The sort of calibration you want to use",
"calibration_mode": "Calibration mode",
Expand Down
8 changes: 4 additions & 4 deletions custom_components/better_thermostat/translations/da.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"protect_overheating": "Overophedningsbeskyttelse?",
"heat_auto_swapped": "Hvis auto betyder varme for din TRV og du vil bytte det",
"child_lock": "Ignorer alle input på TRV som en børnesikring",
"homaticip": "Hvis du bruger HomaticIP, bør du aktivere dette for at bremse anmodningerne for at forhindre arbejdscyklus",
"homematicip": "Hvis du bruger HomematicIP, bør du aktivere dette for at bremse anmodningerne for at forhindre arbejdscyklus",
"valve_maintenance": "Hvis din termostat ikke har nogen egen vedligeholdelsestilstand, kan du bruge denne",
"calibration": "Den slags kalibrering du vil bruge",
"calibration_mode": "Kalibreringstilstand",
Expand Down Expand Up @@ -73,7 +73,7 @@
"weather": "Din vejrentitet for at få udendørstemperaturen",
"heat_auto_swapped": "Hvis auto betyder varme til din TRV, og du ønsker at bytte den",
"child_lock": "Ignorer alle input på TRV som en børnesikring",
"homaticip": "Hvis du bruger HomaticIP, bør du aktivere dette for at bremse anmodningerne for at forhindre arbejdscyklus"
"homaticip": "Hvis du bruger HomematicIP, bør du aktivere dette for at bremse anmodningerne for at forhindre arbejdscyklus"
}
},
"advanced": {
Expand All @@ -82,7 +82,7 @@
"protect_overheating": "Overophedningsbeskyttelse?",
"heat_auto_swapped": "Hvis auto betyder varme for din TRV og du vil bytte det",
"child_lock": "Ignorer alle input på TRV som en børnesikring",
"homaticip": "Hvis du bruger HomaticIP, bør du aktivere dette for at bremse anmodningerne for at forhindre arbejdscyklus",
"homematicip": "Hvis du bruger HomematicIP, bør du aktivere dette for at bremse anmodningerne for at forhindre arbejdscyklus",
"valve_maintenance": "Hvis din termostat ikke har nogen egen vedligeholdelsestilstand, kan du bruge denne",
"calibration": "Den slags kalibrering du vil bruge",
"calibration_mode": "Kalibreringstilstand",
Expand Down Expand Up @@ -127,4 +127,4 @@
"description": "Indstil måltemperaturen til en midlertidig som nattilstand, og gem den gamle."
}
}
}
}
6 changes: 3 additions & 3 deletions custom_components/better_thermostat/translations/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"protect_overheating": "Überhitzung verhindern?",
"heat_auto_swapped": "Tauscht die Modi auto und heat, falls diese bei dem realen Thermostat vertauscht sind.",
"child_lock": "Ignoriere alle manuellen Einstellungen am realen Thermostat (Kindersicherung).",
"homaticip": "Wenn du HomaticIP nutzt, solltest du diese Option aktivieren, um die Funk-Übertragung zu reduzieren.",
"homematicip": "Wenn du HomematicIP nutzt, solltest du diese Option aktivieren, um die Funk-Übertragung zu reduzieren.",
"valve_maintenance": "Soll BT die Wartung des Thermostats übernehmen?",
"calibration": "Kalibrierungstyp",
"calibration_mode": "Kalibrierungsmodus",
Expand Down Expand Up @@ -71,7 +71,7 @@
"weather": "Die Wetter-Entität für die Außentemperatur.",
"valve_maintenance": "Wenn Ihr Thermostat keinen eigenen Wartungsmodus hat, können Sie diesen verwenden.",
"child_lock": "Ignorieren Sie alle Eingaben am TRV wie eine Kindersicherung.",
"homaticip": "Wenn Sie HomaticIP verwenden, sollten Sie dies aktivieren, um die Anfragen zu verlangsamen und den Duty Cycle zu verhindern.",
"homematicip": "Wenn Sie HomematicIP verwenden, sollten Sie dies aktivieren, um die Anfragen zu verlangsamen und den Duty Cycle zu verhindern.",
"heat_auto_swapped": "Wenn das Auto Wärme für Ihr TRV bedeutet und Sie es austauschen möchten.",
"calibration": "Die Art der Kalibrierung https://better-thermostat.org/configuration#second-step"
}
Expand All @@ -82,7 +82,7 @@
"protect_overheating": "Überhitzung verhindern?",
"heat_auto_swapped": "Tauscht die Modi auto und heat, falls diese bei dem realen Thermostat vertauscht sind.",
"child_lock": "Ignoriere alle manuellen Einstellungen am realen Thermostat (Kindersicherung).",
"homaticip": "Wenn du HomaticIP nutzt, solltest du diese Option aktivieren, um die Funk-Übertragung zu reduzieren.",
"homematicip": "Wenn du HomematicIP nutzt, solltest du diese Option aktivieren, um die Funk-Übertragung zu reduzieren.",
"valve_maintenance": "Soll BT die Wartung des Thermostats übernehmen?",
"calibration": "Kalibrierungstyp",
"calibration_mode": "Kalibrierungsmodus",
Expand Down
6 changes: 3 additions & 3 deletions custom_components/better_thermostat/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"protect_overheating": "Overheating protection?",
"heat_auto_swapped": "If the auto means heat for your TRV and you want to swap it",
"child_lock": "Ignore all inputs on the TRV like a child lock",
"homaticip": "If you use HomaticIP, you should enable this to slow down the requests to prevent the duty cycle",
"homematicip": "If you use HomematicIP, you should enable this to slow down the requests to prevent the duty cycle",
"valve_maintenance": "If your thermostat has no own maintenance mode, you can use this one",
"calibration": "Calibration Type",
"calibration_mode": "Calibration mode",
Expand Down Expand Up @@ -73,7 +73,7 @@
"weather": "Your weather entity to get the outdoor temperature",
"heat_auto_swapped": "If the auto means heat for your TRV and you want to swap it",
"child_lock": "Ignore all inputs on the TRV like a child lock",
"homaticip": "If you use HomaticIP, you should enable this to slow down the requests to prevent the duty cycle"
"homematicip": "If you use HomematicIP, you should enable this to slow down the requests to prevent the duty cycle"
}
},
"advanced": {
Expand All @@ -82,7 +82,7 @@
"protect_overheating": "Overheating protection?",
"heat_auto_swapped": "If the auto means heat for your TRV and you want to swap it",
"child_lock": "Ignore all inputs on the TRV like a child lock",
"homaticip": "If you use HomaticIP, you should enable this to slow down the requests to prevent the duty cycle",
"homematicip": "If you use HomematicIP, you should enable this to slow down the requests to prevent the duty cycle",
"valve_maintenance": "If your thermostat has no own maintenance mode, you can use this one",
"calibration": "The sort of calibration you want to use",
"calibration_mode": "Calibration mode",
Expand Down
6 changes: 3 additions & 3 deletions custom_components/better_thermostat/translations/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"protect_overheating": "Protection contre la surchauffe ?",
"heat_auto_swapped": "Si le mode automatique signifie chauffage pour votre TRV et que vous voulez le permuter",
"child_lock": "Ignorer toutes les entrées sur le TRV comme une sécurité enfant",
"homaticip": "Si vous utilisez HomaticIP, vous devriez l'activer pour ralentir les demandes et éviter le cycle de fonctionnement excessif",
"homematicip": "Si vous utilisez HomematicIP, vous devriez l'activer pour ralentir les demandes et éviter le cycle de fonctionnement excessif",
"valve_maintenance": "Si votre thermostat n'a pas de mode maintenance propre, vous pouvez utiliser celui-ci",
"calibration": "Type de calibrage",
"calibration_mode": "Mode de calibrage",
Expand Down Expand Up @@ -73,7 +73,7 @@
"weather": "Votre entité météo pour obtenir la température extérieure",
"heat_auto_swapped": "Si le mode automatique signifie chauffage pour votre TRV et que vous voulez le permuter",
"child_lock": "Ignorer toutes les entrées sur le TRV comme une sécurité enfant",
"homaticip": "Si vous utilisez HomaticIP, vous devriez l'activer pour ralentir les demandes et éviter le cycle de fonctionnement excessif"
"homematicip": "Si vous utilisez HomematicIP, vous devriez l'activer pour ralentir les demandes et éviter le cycle de fonctionnement excessif"
}
},
"advanced": {
Expand All @@ -82,7 +82,7 @@
"protect_overheating": "Protection contre la surchauffe ?",
"heat_auto_swapped": "Si le mode automatique signifie chauffage pour votre TRV et que vous voulez le permuter",
"child_lock": "Ignorer toutes les entrées sur le TRV comme une sécurité enfant",
"homaticip": "Si vous utilisez HomaticIP, vous devriez l'activer pour ralentir les demandes et éviter le cycle de fonctionnement excessif",
"homematicip": "Si vous utilisez HomematicIP, vous devriez l'activer pour ralentir les demandes et éviter le cycle de fonctionnement excessif",
"valve_maintenance": "Si votre thermostat n'a pas de mode maintenance propre, vous pouvez utiliser celui-ci",
"calibration": "Le type de calibrage que vous souhaitez utiliser",
"calibration_mode": "Mode de calibrage",
Expand Down
6 changes: 3 additions & 3 deletions custom_components/better_thermostat/translations/pl.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"data": {
"heat_auto_swapped": "Jeżeli tryb auto oznacza grzanie dla Twojego TRV i chcesz to zmienić",
"child_lock": "Ignoruj wszystkie wejścia w TRV jak np. Blokada dziecięca",
"homaticip": "Jeżeli używasz HomaticIP, powinieneś włączyć tę opcję, żeby spowolnić żądania cyklu pracy",
"homematicip": "Jeżeli używasz HomematicIP, powinieneś włączyć tę opcję, żeby spowolnić żądania cyklu pracy",
"valve_maintenance": "Jeżeli Twój termostat nie ma trybu konserwacji, możesz użyć tej opcji.",
"calibration": "Rodzaj kalibracji, której chcesz użyć",
"no_off_system_mode": "Jeśli Twój TRV nie obsługuje trybu wyłączenia, możesz go włączyć, aby zamiast tego używać temperatury docelowej 5°C",
Expand Down Expand Up @@ -66,7 +66,7 @@
"weather": "Twoja jednostka pogodowa, aby uzyskać temperaturę zewnętrzną",
"heat_auto_swapped": "Jeżeli tryb auto oznacza grzanie dla Twojego TRV i chcesz to zmienić",
"child_lock": "Ignoruj wszystkie wejścia w TRV jak np. Blokada dziecięca",
"homaticip": "Jeżeli używasz HomaticIP, powinienieś włączyć tę opcję żeby spowolnić żądania",
"homematicip": "Jeżeli używasz HomematicIP, powinienieś włączyć tę opcję żeby spowolnić żądania",
"name": "Nazwa",
"thermostat": "Prawdziwy termostat"
}
Expand All @@ -76,7 +76,7 @@
"data": {
"heat_auto_swapped": "Jeżeli tryb auto oznacza grzanie dla Twojego TRV i chcesz to zmienić",
"child_lock": "Ignoruj wszystkie wejścia w TRV jak np. Blokada dziecięca",
"homaticip": "Jeżeli używasz HomaticIP, powinieneś włączyć tę opcję, żeby spowolnić żądania spowolnienia cyklu pracy",
"homematicip": "Jeżeli używasz HomematicIP, powinieneś włączyć tę opcję, żeby spowolnić żądania spowolnienia cyklu pracy",
"valve_maintenance": "Jeżeli Twój termostat nie ma trybu konserwacji, możesz użyć tej opcji.",
"calibration": "Rodzaj kalibracji, której chcesz użyć",
"protect_overheating": "Zabezpieczenie przed przegrzaniem?",
Expand Down
6 changes: 3 additions & 3 deletions custom_components/better_thermostat/translations/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"protect_overheating": "Защита от перегрева?",
"heat_auto_swapped": "Если автомат означает обогрев вашего термостата, и вы хотите его поменять",
"child_lock": "Игнорировать все входы на термостате, как блокировку от детей.",
"homaticip": "Если вы используете HomaticIP, вам следует включить это, чтобы замедлить запросы и предотвратить рабочий цикл.",
"homematicip": "Если вы используете HomematicIP, вам следует включить это, чтобы замедлить запросы и предотвратить рабочий цикл.",
"valve_maintenance": "Если у вашего термостата нет собственного режима обслуживания, вы можете использовать этот.",
"calibration": "Тип калибровки",
"calibration_mode": "Режим калибровки",
Expand Down Expand Up @@ -73,7 +73,7 @@
"weather": "Датчик температуры наружного воздуха",
"heat_auto_swapped": "Если автомат означает обогрев вашего термостата, и вы хотите его поменять",
"child_lock": "Игнорировать все входы на термостате, как блокировку от детей.",
"homaticip": "Если вы используете HomaticIP, вам следует включить это, чтобы замедлить запросы и предотвратить рабочий цикл."
"homematicip": "Если вы используете HomematicIP, вам следует включить это, чтобы замедлить запросы и предотвратить рабочий цикл."
}
},
"advanced": {
Expand All @@ -82,7 +82,7 @@
"protect_overheating": "Защита от перегрева?",
"heat_auto_swapped": "Если стоит функция auto, это означает нагрев вашего термостата и вы хотите его заменить",
"child_lock": "Игнорировать все входы на термостате, как блокировку от детей.",
"homaticip": "Если вы используете HomaticIP, вам следует включить это, чтобы замедлить запросы и предотвратить рабочий цикл.",
"homematicip": "Если вы используете HomematicIP, вам следует включить это, чтобы замедлить запросы и предотвратить рабочий цикл.",
"valve_maintenance": "Если у вашего термостата нет собственного режима обслуживания, вы можете использовать этот.",
"calibration": "Тип калибровки, которую вы хотите использовать",
"calibration_mode": "Режим калибровки",
Expand Down
Loading

0 comments on commit 37de82b

Please sign in to comment.