mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-21 08:06:30 +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')
|
json_file = Path(__file__).parent.joinpath('audiodb.json')
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
# pylint: disable=no-member
|
||||||
with json_file.open('r') as database:
|
with json_file.open('r') as database:
|
||||||
return json.loads(database.read())
|
return json.loads(database.read())
|
||||||
except (ValueError, OSError) as err:
|
except (ValueError, OSError) as err:
|
||||||
@ -117,6 +118,7 @@ class AlsaAudio(CoreSysAttributes):
|
|||||||
# Read Template
|
# Read Template
|
||||||
asound_file = Path(__file__).parent.joinpath('asound.tmpl')
|
asound_file = Path(__file__).parent.joinpath('asound.tmpl')
|
||||||
try:
|
try:
|
||||||
|
# pylint: disable=no-member
|
||||||
with asound_file.open('r') as asound:
|
with asound_file.open('r') as asound:
|
||||||
asound_data = asound.read()
|
asound_data = asound.read()
|
||||||
except OSError as err:
|
except OSError as err:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user