Add entity translations to Goodwe (#98224)

* Add entity translations to Goodwe

* Add entity translations to Goodwe
This commit is contained in:
Joost Lekkerkerker 2023-08-14 19:35:31 +02:00 committed by GitHub
parent c3c00e6984
commit 318aa9b95a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 23 additions and 5 deletions

View file

@ -31,7 +31,6 @@ _OPTION_TO_MODE: dict[str, OperationMode] = {
OPERATION_MODE = SelectEntityDescription(
key="operation_mode",
name="Inverter operation mode",
icon="mdi:solar-power",
entity_category=EntityCategory.CONFIG,
translation_key="operation_mode",
@ -72,6 +71,7 @@ class InverterOperationModeEntity(SelectEntity):
"""Entity representing the inverter operation mode."""
_attr_should_poll = False
_attr_has_entity_name = True
def __init__(
self,