From 279f264ffc3b820dc4a7ffa41882a0ee660a9427 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Lov=C3=A9n?= Date: Thu, 29 Apr 2021 10:20:03 +0000 Subject: [PATCH] Linting --- custom_components/browser_mod/mod_view.py | 2 +- custom_components/browser_mod/sensor.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) 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