Fix issue: fan.get_presence always return false (#5983)
This commit is contained in:
parent
628cc2c11b
commit
ebc84bee94
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user