Skip to content

Commit 5d78cd3

Browse files
authored
Remove explicit templating of velbus service data (home-assistant#157749)
1 parent bc36578 commit 5d78cd3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

homeassistant/components/velbus/services.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ async def set_memo_text(call: ServiceCall) -> None:
6969
module = entry.runtime_data.controller.get_module(call.data[CONF_ADDRESS])
7070
if not module:
7171
raise ServiceValidationError("Module not found")
72-
await module.set_memo_text(memo_text.async_render())
72+
await module.set_memo_text(memo_text)
7373

7474
async def clear_cache(call: ServiceCall) -> None:
7575
"""Handle a clear cache service call."""
@@ -135,7 +135,7 @@ async def clear_cache(call: ServiceCall) -> None:
135135
vol.Required(CONF_ADDRESS): vol.All(
136136
vol.Coerce(int), vol.Range(min=0, max=255)
137137
),
138-
vol.Optional(CONF_MEMO_TEXT, default=""): cv.template,
138+
vol.Optional(CONF_MEMO_TEXT, default=""): cv.string,
139139
}
140140
),
141141
)

0 commit comments

Comments
 (0)