This commit is contained in:
Thomas Lovén 2021-04-29 10:20:03 +00:00
parent 11dc0de087
commit 279f264ffc
2 changed files with 1 additions and 2 deletions

View File

@ -31,7 +31,7 @@ class ModView(HomeAssistantView):
with open(path, mode="r", encoding="utf-8", errors="ignore") as localfile:
filecontent = localfile.read()
localfile.close()
except Exception as exception:
except Exception:
pass
return web.Response(

View File

@ -1,4 +1,3 @@
import logging
from datetime import datetime
from homeassistant.const import STATE_UNAVAILABLE