Update initial translation for ViCare water heater entity (#104696)

pull/104766/head
Christopher Fenner 2023-11-30 01:38:33 +01:00 committed by GitHub
parent b957c4e3ee
commit ec647677e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -283,8 +283,8 @@
}
},
"water_heater": {
"water": {
"name": "Water"
"domestic_hot_water": {
"name": "Domestic hot water"
}
}
},

View File

@ -64,13 +64,13 @@ def _build_entities(
api: PyViCareDevice,
device_config: PyViCareDeviceConfig,
) -> list[ViCareWater]:
"""Create ViCare water entities for a device."""
"""Create ViCare domestic hot water entities for a device."""
return [
ViCareWater(
api,
circuit,
device_config,
"water",
"domestic_hot_water",
)
for circuit in get_circuits(api)
]
@ -81,7 +81,7 @@ async def async_setup_entry(
config_entry: ConfigEntry,
async_add_entities: AddEntitiesCallback,
) -> None:
"""Set up the ViCare climate platform."""
"""Set up the ViCare water heater platform."""
api = hass.data[DOMAIN][config_entry.entry_id][VICARE_API]
device_config = hass.data[DOMAIN][config_entry.entry_id][VICARE_DEVICE_CONFIG]