Skip to content

Commit

Permalink
fix: Device name translations
Browse files Browse the repository at this point in the history
  • Loading branch information
alepee committed Nov 24, 2024
1 parent c0eaf92 commit c5b5aa0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/hitachi_yutaki/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:

def get_translated_name(device_key: str, fallback: str) -> str:
"""Get translated name for device with fallback."""
return translations.get(f"device.{device_key}.name", fallback)
return translations.get(f"{device_key}.name", fallback)

# Add gateway device
gateway_name = get_translated_name("gateway", DEVICE_GATEWAY.title())
Expand Down

0 comments on commit c5b5aa0

Please sign in to comment.