diff --git a/custom_components/browser_mod/mod_view.py b/custom_components/browser_mod/mod_view.py index 4aedf2c..42fce6c 100644 --- a/custom_components/browser_mod/mod_view.py +++ b/custom_components/browser_mod/mod_view.py @@ -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( diff --git a/custom_components/browser_mod/sensor.py b/custom_components/browser_mod/sensor.py index 51b7c42..596b525 100644 --- a/custom_components/browser_mod/sensor.py +++ b/custom_components/browser_mod/sensor.py @@ -1,4 +1,3 @@ -import logging from datetime import datetime from homeassistant.const import STATE_UNAVAILABLE