mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-20 07:36:29 +00:00
fix lint
This commit is contained in:
parent
2c714aa003
commit
cf00ce7d78
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user