Fixed issue where data manipulation was always executing

This commit is contained in:
Marek Wolan
2024-01-09 17:10:12 +00:00
parent daa34385e5
commit e73783f6fa
2 changed files with 9 additions and 3 deletions

View File

@@ -278,7 +278,7 @@ class IOSoftware(Software):
Returns true if the software can perform actions.
"""
if self.software_manager and self.software_manager.node.operating_state is NodeOperatingState.OFF:
if self.software_manager and self.software_manager.node.operating_state is not NodeOperatingState.ON:
_LOGGER.debug(f"{self.name} Error: {self.software_manager.node.hostname} is not online.")
return False
return True