Fix device info #2

This commit is contained in:
Michael Graf 2021-05-15 16:12:56 +02:00
parent c8710d8237
commit 20ed194b68

View File

@ -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)