mirror of
https://github.com/home-assistant/core.git
synced 2025-08-04 21:25:13 +02:00
Fix implicit-return in maxcube (#122907)
This commit is contained in:
@@ -98,7 +98,7 @@ class MaxCubeHandle:
|
|||||||
self.mutex = Lock()
|
self.mutex = Lock()
|
||||||
self._updatets = time.monotonic()
|
self._updatets = time.monotonic()
|
||||||
|
|
||||||
def update(self):
|
def update(self) -> None:
|
||||||
"""Pull the latest data from the MAX! Cube."""
|
"""Pull the latest data from the MAX! Cube."""
|
||||||
# Acquire mutex to prevent simultaneous update from multiple threads
|
# Acquire mutex to prevent simultaneous update from multiple threads
|
||||||
with self.mutex:
|
with self.mutex:
|
||||||
@@ -110,7 +110,7 @@ class MaxCubeHandle:
|
|||||||
self.cube.update()
|
self.cube.update()
|
||||||
except TimeoutError:
|
except TimeoutError:
|
||||||
_LOGGER.error("Max!Cube connection failed")
|
_LOGGER.error("Max!Cube connection failed")
|
||||||
return False
|
return
|
||||||
|
|
||||||
self._updatets = time.monotonic()
|
self._updatets = time.monotonic()
|
||||||
else:
|
else:
|
||||||
|
Reference in New Issue
Block a user