Fix issue: fan.get_presence always return false (#5983)

This commit is contained in:
Junchao-Mellanox 2020-11-23 15:28:12 +08:00 committed by GitHub
parent 628cc2c11b
commit ebc84bee94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -151,7 +151,7 @@ class Fan(FanBase):
if self.always_presence:
status = 1
else:
read_int_from_file(os.path.join(FAN_PATH, self.fan_presence_path), 0)
status = read_int_from_file(os.path.join(FAN_PATH, self.fan_presence_path), 0)
return status == 1