Add entity translations to Goodwe (#98224)
* Add entity translations to Goodwe * Add entity translations to Goodwe
This commit is contained in:
parent
c3c00e6984
commit
318aa9b95a
4 changed files with 23 additions and 5 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue