Make f-strings without placeholder normal strings (#33938)

This commit is contained in:
Ville Skyttä 2020-04-10 10:59:06 +03:00 committed by GitHub
parent e9e1ec5312
commit 9b7e31eca3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -73,7 +73,7 @@ def _ensure_no_intersection(value):
CONF_SCENE_ID = "scene_id"
CONF_SNAPSHOT = "snapshot_entities"
DATA_PLATFORM = f"homeassistant_scene"
DATA_PLATFORM = "homeassistant_scene"
STATES_SCHEMA = vol.All(dict, _convert_states)

View File

@ -115,7 +115,7 @@ class Light(HomeAccessory):
if CHAR_BRIGHTNESS in char_values:
if char_values[CHAR_BRIGHTNESS] == 0:
events[-1] = f"Set state to 0"
events[-1] = "Set state to 0"
service = SERVICE_TURN_OFF
else:
params[ATTR_BRIGHTNESS_PCT] = char_values[CHAR_BRIGHTNESS]

View File

@ -369,7 +369,7 @@ class OAuth2AuthorizeCallbackView(HomeAssistantView):
state = _decode_jwt(hass, request.query["state"])
if state is None:
return web.Response(text=f"Invalid state")
return web.Response(text="Invalid state")
await hass.config_entries.flow.async_configure(
flow_id=state["flow_id"], user_input=request.query["code"]