Skip to content

Commit ca9ea26

Browse files
authored
Move teslemetry time-of-use URL out of strings.json (home-assistant#157874)
1 parent f1bfe2f commit ca9ea26

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

homeassistant/components/teslemetry/services.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,9 @@ async def time_of_use(call: ServiceCall) -> None:
325325
vol.Required(ATTR_TOU_SETTINGS): dict,
326326
}
327327
),
328+
description_placeholders={
329+
"time_of_use_url": "https://developer.tesla.com/docs/fleet-api#time_of_use_settings"
330+
},
328331
)
329332

330333
async def add_charge_schedule(call: ServiceCall) -> None:

homeassistant/components/teslemetry/strings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1358,7 +1358,7 @@
13581358
"name": "Energy Site"
13591359
},
13601360
"tou_settings": {
1361-
"description": "See https://developer.tesla.com/docs/fleet-api#time_of_use_settings for details.",
1361+
"description": "See {time_use_url} for details.",
13621362
"name": "Settings"
13631363
}
13641364
},

0 commit comments

Comments
 (0)