Fix implicit-return in maxcube (#122907)
This commit is contained in:
parent
47c96c52b1
commit
c32f1efad0
1 changed files with 2 additions and 2 deletions
|
@ -98,7 +98,7 @@ class MaxCubeHandle:
|
|||
self.mutex = Lock()
|
||||
self._updatets = time.monotonic()
|
||||
|
||||
def update(self):
|
||||
def update(self) -> None:
|
||||
"""Pull the latest data from the MAX! Cube."""
|
||||
# Acquire mutex to prevent simultaneous update from multiple threads
|
||||
with self.mutex:
|
||||
|
@ -110,7 +110,7 @@ class MaxCubeHandle:
|
|||
self.cube.update()
|
||||
except TimeoutError:
|
||||
_LOGGER.error("Max!Cube connection failed")
|
||||
return False
|
||||
return
|
||||
|
||||
self._updatets = time.monotonic()
|
||||
else:
|
||||
|
|
Loading…
Add table
Reference in a new issue