Get ServiceValidationError message from translation cache only (#113704)

* Get ServiceValidationError message from translation cache only

* Remove message for NotValidPresetModeError
This commit is contained in:
Jan Bouwhuis 2024-03-18 14:42:21 +01:00 committed by GitHub
parent ec7aecef84
commit 3dc8df2403
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
18 changed files with 16 additions and 43 deletions

View file

@ -550,8 +550,8 @@ async def test_service_call_with_template_topic_renders_invalid_topic(
blocking=True,
)
assert str(exc.value) == (
"Unable to publish: topic template 'test/{{ '+' if True else 'topic' }}/topic' "
"produced an invalid topic 'test/+/topic' after rendering "
"Unable to publish: topic template `test/{{ '+' if True else 'topic' }}/topic` "
"produced an invalid topic `test/+/topic` after rendering "
"(Wildcards cannot be used in topic names)"
)
assert not mqtt_mock.async_publish.called