Skip to content

Commit

Permalink
fix translation
Browse files Browse the repository at this point in the history
Signed-off-by: Serge Arbuzov <info@whitediver.com>
  • Loading branch information
Arbuzov committed Nov 12, 2023
1 parent 5983c92 commit 0cd10dd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions custom_components/delonghi_primadonna/select.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ async def async_setup_entry(
class ProfileSelect(DelonghiDeviceEntity, SelectEntity):
"""Implementation for profile selection."""

_attr_name = 'Profile'
# _attr_name = 'Profile'
_attr_options = list(AVAILABLE_PROFILES.keys())
_attr_current_option = list(AVAILABLE_PROFILES.keys())[0]
_attr_entity_category = EntityCategory.CONFIG
Expand All @@ -56,7 +56,7 @@ async def async_select_option(self, option: str) -> None:
class BeverageSelect(DelonghiDeviceEntity, SelectEntity):
"""Beverage start implementation by the select"""

_attr_name = 'Beverage'
# _attr_name = 'Beverage'
_attr_options = [*AvailableBeverage]
_attr_current_option = [*AvailableBeverage][0]
_attr_translation_key = 'beverage'
Expand All @@ -70,7 +70,7 @@ async def async_select_option(self, option: str) -> None:
class EnergySaveModeSelect(DelonghiDeviceEntity, SelectEntity):
"""Energy save mode management"""

_attr_name = 'Energy Save Mode'
# _attr_name = 'Energy Save Mode'
_attr_options = list(POWER_OFF_OPTIONS.keys())
_attr_current_option = list(POWER_OFF_OPTIONS.keys())[3]
_attr_translation_key = 'energy_save_mode'
Expand All @@ -93,7 +93,7 @@ async def async_select_option(self, option: str) -> None:
class WaterHardnessSelect(DelonghiDeviceEntity, SelectEntity):
"""Water hardness management"""

_attr_name = 'Water Hardness'
# _attr_name = 'Water Hardness'
_attr_options = ['Soft', 'Medium', 'Hard', 'Very Hard']
_attr_current_option = 'Soft'
_attr_translation_key = 'water_hardness'
Expand All @@ -116,7 +116,7 @@ async def async_select_option(self, option: str) -> None:
class WaterTemperatureSelect(DelonghiDeviceEntity, SelectEntity):
"""Water temperature management"""

_attr_name = 'Water Temperature'
# _attr_name = 'Water Temperature'
_attr_options = ['Low', 'Medium', 'High', 'Highest']
_attr_current_option = 'Low'
_attr_translation_key = 'water_temperature'
Expand Down

0 comments on commit 0cd10dd

Please sign in to comment.