Skip to content

Commit 51a7f7d

Browse files
committed
Also a 2 second wait after button press
1 parent cc1c42e commit 51a7f7d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

custom_components/enpal_webparser/button.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
# See README.md for setup and usage instructions.
1818
#
1919

20+
import asyncio
2021
from functools import cached_property
2122
import logging
2223

@@ -91,6 +92,9 @@ async def async_press(self):
9192
except Exception as e:
9293
_LOGGER.exception("[Enpal] Wallbox request failed: %s", e)
9394

95+
# Wait a moment to allow the wallbox to process the change
96+
await asyncio.sleep(2)
97+
9498
await self._hass.services.async_call(
9599
"homeassistant",
96100
"update_entity",

0 commit comments

Comments
 (0)