Fix device info #2
This commit is contained in:
parent
c8710d8237
commit
20ed194b68
@ -188,7 +188,7 @@ class VorwerkState:
|
|||||||
|
|
||||||
def _update_state(self):
|
def _update_state(self):
|
||||||
try:
|
try:
|
||||||
if self.robot_info is None:
|
if not self.robot_info:
|
||||||
self.robot_info = self.robot.get_general_info().json().get("data")
|
self.robot_info = self.robot.get_general_info().json().get("data")
|
||||||
except NeatoRobotException:
|
except NeatoRobotException:
|
||||||
_LOGGER.warning("Couldn't fetch robot information of %s", self.robot.name)
|
_LOGGER.warning("Couldn't fetch robot information of %s", self.robot.name)
|
||||||
|
Loading…
Reference in New Issue
Block a user