Skip to content

Commit 19231a9

Browse files
cleanup
1 parent 2c00863 commit 19231a9

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

interfaces/apa102.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,6 @@ def doa(self) -> int:
7878
try:
7979
return self._doa.get_direction()
8080
except:
81-
pass
81+
return 0
8282

8383
return 0

models/HermesLedControl.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,11 @@ def __init__(self, params: argparse.Namespace):
6565
if params.engine == 'projectalice':
6666
from models.engines.ProjectAlice import ProjectAlice
6767

68-
engine = ProjectAlice()
68+
engine: ProjectAlice = ProjectAlice()
6969
elif params.engine == 'rhasspy':
7070
from models.engines.Rhasspy import Rhasspy
7171

72-
engine = Rhasspy()
72+
engine: Rhasspy = Rhasspy()
7373
else:
7474
self._logger.error(f'Unsupported assistant engine "{params.engine}"')
7575
self.onStop()

models/Interface.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import logging
2-
from typing import List, Any
2+
from typing import List, Any, Union
33

44

55
class Interface(object):
@@ -10,7 +10,7 @@ def __init__(self, numLeds: int):
1010
self._logger = logging.getLogger('HermesLedControl')
1111
self._leds: Any = None
1212
self._power: Any = None
13-
self._doa: bool = False
13+
self._doa: Union[bool, int] = False
1414

1515

1616
@property

0 commit comments

Comments
 (0)