1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Remove unnecessary string literal concatenations (#30360)

This commit is contained in:
Ville Skyttä
2020-01-02 21:17:10 +02:00
committed by GitHub
parent cac750066a
commit e6388e186c
183 changed files with 362 additions and 393 deletions

View File

@@ -113,7 +113,7 @@ async def test_set_operation_bad_attr_and_state(hass, mqtt_mock, caplog):
assert state.state == "off"
with pytest.raises(vol.Invalid) as excinfo:
await common.async_set_hvac_mode(hass, None, ENTITY_CLIMATE)
assert ("value is not allowed for dictionary value @ " "data['hvac_mode']") in str(
assert ("value is not allowed for dictionary value @ data['hvac_mode']") in str(
excinfo.value
)
state = hass.states.get(ENTITY_CLIMATE)