Skip to content

Commit

Permalink
Possible fix for #34 not sure
Browse files Browse the repository at this point in the history
  • Loading branch information
qJake committed Sep 19, 2019
1 parent 4dac03f commit 6a0d50f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions HADotNet.CommandCenter/Controllers/AdminController.cs
Expand Up @@ -249,7 +249,7 @@ public async Task<IActionResult> ExportTheme()
Response.Headers["Content-Disposition"] = "attachment; filename=hacc-export.theme.json";
Response.Headers["Content-Transfer-Encoding"] = "binary";
await Response.Body.WriteAsync(themeData, 0, themeData.Length);
Response.Body.Flush();
await Response.Body.FlushAsync();

Logger.LogInformation("Exported theme settings.");

Expand Down Expand Up @@ -319,7 +319,7 @@ public async Task<IActionResult> ExportConfig()
Response.Headers["Content-Disposition"] = $"attachment; filename={filename}";
Response.Headers["Content-Transfer-Encoding"] = "binary";
await Response.Body.WriteAsync(configData, 0, configData.Length);
Response.Body.Flush();
await Response.Body.FlushAsync();

TempData.AddWarning("WARNING: Be careful when importing this file into another HACC instance. If the names of Home Assistant entities are different on the target platform, HACC may experience errors!");

Expand Down

0 comments on commit 6a0d50f

Please sign in to comment.