From cf00ce7d78ce00d04eda34b2cb695bfea7e681c7 Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Thu, 12 Apr 2018 23:50:58 +0200 Subject: [PATCH] fix lint --- hassio/host/audio.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hassio/host/audio.py b/hassio/host/audio.py index 6e32b561a..18b6be9a7 100644 --- a/hassio/host/audio.py +++ b/hassio/host/audio.py @@ -73,6 +73,7 @@ class AlsaAudio(CoreSysAttributes): json_file = Path(__file__).parent.joinpath('audiodb.json') try: + # pylint: disable=no-member with json_file.open('r') as database: return json.loads(database.read()) except (ValueError, OSError) as err: @@ -117,6 +118,7 @@ class AlsaAudio(CoreSysAttributes): # Read Template asound_file = Path(__file__).parent.joinpath('asound.tmpl') try: + # pylint: disable=no-member with asound_file.open('r') as asound: asound_data = asound.read() except OSError as err: