mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Make f-strings without placeholder normal strings (#33938)
This commit is contained in:
parent
e9e1ec5312
commit
9b7e31eca3
@ -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)
|
||||
|
||||
|
||||
|
@ -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]
|
||||
|
@ -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"]
|
||||
|
Loading…
x
Reference in New Issue
Block a user