Skip to content

Commit

Permalink
Fixed broken option translation in #115, updated base library & remov…
Browse files Browse the repository at this point in the history
…ed dacite dependency
  • Loading branch information
signalkraft committed Feb 24, 2024
1 parent f6516a9 commit 49ffa31
Show file tree
Hide file tree
Showing 10 changed files with 17 additions and 12 deletions.
4 changes: 2 additions & 2 deletions custom_components/mypyllant/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,11 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
from importlib.metadata import version

_LOGGER.debug(
"Starting mypyllant component %s (library %s) with homeassistant %s, dacite %s, and aiohttp %s",
"Starting mypyllant component %s (library %s) with homeassistant %s, pydantic %s, and aiohttp %s",
hass.data["integrations"][DOMAIN].version,
version("myPyllant"),
version("homeassistant"),
version("dacite"),
version("pydantic"),
version("aiohttp"),
)
username: str = entry.data.get("username") # type: ignore
Expand Down
14 changes: 7 additions & 7 deletions custom_components/mypyllant/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,19 +138,19 @@ async def async_step_init(
DEFAULT_HOLIDAY_DURATION,
),
): positive_int,
vol.Required(
OPTION_TIME_PROGRAM_OVERWRITE,
default=self.config_entry.options.get(
OPTION_TIME_PROGRAM_OVERWRITE,
DEFAULT_TIME_PROGRAM_OVERWRITE,
),
): bool,
vol.Required(
OPTION_DEFAULT_HOLIDAY_SETPOINT,
default=self.config_entry.options.get(
OPTION_DEFAULT_HOLIDAY_SETPOINT,
DEFAULT_HOLIDAY_SETPOINT,
),
): vol.All(vol.Coerce(float), vol.Clamp(min=0, max=30)),
vol.Required(
OPTION_TIME_PROGRAM_OVERWRITE,
default=self.config_entry.options.get(
OPTION_TIME_PROGRAM_OVERWRITE,
DEFAULT_TIME_PROGRAM_OVERWRITE,
),
): bool,
vol.Required(
OPTION_BRAND,
Expand Down
2 changes: 1 addition & 1 deletion custom_components/mypyllant/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"iot_class": "cloud_polling",
"issue_tracker": "https://github.com/signalkraft/mypyllant-component/issues",
"requirements": [
"myPyllant==0.7.21"
"myPyllant==0.7.22"
],
"version": "v0.7.3"
}
1 change: 1 addition & 0 deletions custom_components/mypyllant/translations/cs.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"quick_veto_duration": "Nastavené trvání v hodinách pro rychlé veto",
"holiday_duration": "Nastavená doba trvání dovolené ve dnech",
"time_program_overwrite": "Regulátory teploty přepisují časový program namísto nastavení rychlého veta",
"default_holiday_setpoint": "Výchozí teplota pro dovolenou",
"country": "Země",
"brand": "Značka"
}
Expand Down
1 change: 1 addition & 0 deletions custom_components/mypyllant/translations/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"quick_veto_duration": "Standard Dauer in Stunden für Quick Veto",
"holiday_duration": "Standard Dauer in Tagen für Abwesenheitsmodus",
"time_program_overwrite": "Temperaturänderungen in der Zeitsteuerung speichern, statt Quick Veto",
"default_holiday_setpoint": "Standardtemperatur während Abwesenheitsmodus",
"country": "Land",
"brand": "Hersteller"
}
Expand Down
1 change: 1 addition & 0 deletions custom_components/mypyllant/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"quick_veto_duration": "Default duration in hours for quick veto",
"holiday_duration": "Default duration in days for away mode",
"time_program_overwrite": "Temperature controls overwrite time program instead of setting quick veto",
"default_holiday_setpoint": "Default temperature setpoint for away mode",
"country": "Country",
"brand": "Brand"
}
Expand Down
1 change: 1 addition & 0 deletions custom_components/mypyllant/translations/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"quick_veto_duration": "Durata di default in ore per l'acqua calda rapida",
"holiday_duration": "Durata di default in giorni per le vacanze",
"time_program_overwrite": "Controlla la temperatura sovrascrivendo la programmazione oraria invece di attivare acqua calda rapida",
"default_holiday_setpoint": "Temperatura di default per le vacanze",
"country": "Stato",
"brand": "Marca"
}
Expand Down
1 change: 1 addition & 0 deletions custom_components/mypyllant/translations/pl.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"quick_veto_duration": "Domyślny czas trwania szybkiego weta w godzinach",
"holiday_duration": "Domyślny czas trwania wakacji w dniach",
"time_program_overwrite": "Kontrola temperatury nadpisuje program czasowy zamiast ustawiać szybkie weto",
"default_holiday_setpoint": "Domyślna temperatura wakacyjna",
"country": "Kraj",
"brand": "Marka"
}
Expand Down
1 change: 1 addition & 0 deletions custom_components/mypyllant/translations/sk.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"quick_veto_duration": "Predvolené trvanie v hodinách pre rýchle veto",
"holiday_duration": "Predvolená doba trvania dovolenky v dňoch",
"time_program_overwrite": "Regulátory teploty prepisujú časový program namiesto nastavenia rýchleho veta",
"default_holiday_setpoint": "Predvolená teplota počas dovolenky",
"country": "Krajina",
"brand": "Značka"
}
Expand Down
3 changes: 1 addition & 2 deletions dev-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ types-PyYAML~=6.0.12.12

# Need specific versions
pytest-homeassistant-custom-component==0.13.101
myPyllant==0.7.21
dacite~=1.7.0
myPyllant==0.7.22

# Versions handled by pytest-homeassistant-custom-component
freezegun
Expand Down

0 comments on commit 49ffa31

Please sign in to comment.