Fix Export Rule Select Entity in Tessie (#146203)

Fix TessieExportRuleSelectEntity
This commit is contained in:
Brett Adams
2025-06-06 00:39:55 +10:00
committed by Franck Nijhof
parent e4140d71ab
commit e5dd15da82

View File

@@ -168,6 +168,8 @@ class TessieExportRuleSelectEntity(TessieEnergyEntity, SelectEntity):
async def async_select_option(self, option: str) -> None:
"""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.async_write_ha_state()