mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 12:47:08 +00:00
Small fix for the velbus clear-cache service (#83279)
This commit is contained in:
parent
4f4d60c105
commit
1011c30cc5
@ -139,7 +139,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
|
||||
"""Handle a clear cache service call."""
|
||||
# clear the cache
|
||||
with suppress(FileNotFoundError):
|
||||
if call.data[CONF_ADDRESS]:
|
||||
if CONF_ADDRESS in call.data and call.data[CONF_ADDRESS]:
|
||||
await hass.async_add_executor_job(
|
||||
os.unlink,
|
||||
hass.config.path(
|
||||
|
Loading…
x
Reference in New Issue
Block a user