Fix lamarzocco translation_placeholder (#131284)

This commit is contained in:
epenet 2024-11-22 17:37:40 +01:00 committed by GitHub
parent 3052e29689
commit 97f574a86a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -108,7 +108,7 @@ class LaMarzoccoSwitchEntity(LaMarzoccoEntity, SwitchEntity):
raise HomeAssistantError(
translation_domain=DOMAIN,
translation_key="switch_off_error",
translation_placeholders={"name": self.entity_description.key},
translation_placeholders={"key": self.entity_description.key},
) from exc
self.async_write_ha_state()