Skip to content

Commit 258c9ff

Browse files
authored
Handle return result from ebusd being "empty" (home-assistant#153199)
1 parent 89c5d49 commit 258c9ff

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

homeassistant/components/ebusd/__init__.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,11 @@ def write(self, call: ServiceCall) -> None:
116116
try:
117117
_LOGGER.debug("Opening socket to ebusd %s", name)
118118
command_result = ebusdpy.write(self._address, self._circuit, name, value)
119-
if command_result is not None and "done" not in command_result:
119+
if (
120+
command_result is not None
121+
and "done" not in command_result
122+
and "empty" not in command_result
123+
):
120124
_LOGGER.warning("Write command failed: %s", name)
121125
except RuntimeError as err:
122126
_LOGGER.error(err)

0 commit comments

Comments
 (0)