forked from home-assistant/core
Fix Export Rule Select Entity in Tessie (#146203)
Fix TessieExportRuleSelectEntity
This commit is contained in:
committed by
Franck Nijhof
parent
e4140d71ab
commit
e5dd15da82
@@ -168,6 +168,8 @@ class TessieExportRuleSelectEntity(TessieEnergyEntity, SelectEntity):
|
|||||||
|
|
||||||
async def async_select_option(self, option: str) -> None:
|
async def async_select_option(self, option: str) -> None:
|
||||||
"""Change the selected option."""
|
"""Change the selected option."""
|
||||||
await handle_command(self.api.grid_import_export(option))
|
await handle_command(
|
||||||
|
self.api.grid_import_export(customer_preferred_export_rule=option)
|
||||||
|
)
|
||||||
self._attr_current_option = option
|
self._attr_current_option = option
|
||||||
self.async_write_ha_state()
|
self.async_write_ha_state()
|
||||||
|
Reference in New Issue
Block a user