Browse Source

fix a bug

highing666 2 years ago
parent
commit
0b0c447a9c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/controllers/equipment/vav.py

+ 1 - 1
app/controllers/equipment/vav.py

@@ -237,7 +237,7 @@ class VAVControllerV3(VAVControllerV2):
         valid_spaces = self.get_valid_spaces()
 
         if not valid_spaces:
-            virtual_realtime, virtual_target = None, None
+            raise MissingIOTDataError
         else:
             sorted_spaces = sorted(valid_spaces, key=lambda x: x.vav_temporary_update_time)
             if sorted_spaces[-1].vav_temporary_update_time > get_time_str(60 * 60 * 2, flag="ago"):