Add missing decorator

This commit is contained in:
Michael Graf 2021-04-27 11:12:01 +02:00
parent 4aa49b9300
commit d469a62d74

1
api.py
View File

@ -69,6 +69,7 @@ class VorwerkState:
self.robot_state = {} self.robot_state = {}
self.robot_info = {} self.robot_info = {}
@property
def available(self) -> bool: def available(self) -> bool:
"""Return true when robot state is available.""" """Return true when robot state is available."""
return bool(self.robot_state) return bool(self.robot_state)