Skip to content

Commit 6c361f0

Browse files
Added get_low_threshold() and get_high_threshold(), revised get_temperature()
Signed-off-by: Vadym Yashchenko <[email protected]>
1 parent c7e6855 commit 6c361f0

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

  • platform/barefoot/sonic-platform-modules-bfn-montara/sonic_platform

platform/barefoot/sonic-platform-modules-bfn-montara/sonic_platform/thermal.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def __get(self, attr_prefix, attr_suffix):
8383
# ThermalBase interface methods:
8484
def get_temperature(self) -> float:
8585
temp = self.__get('temp', 'input')
86-
self.__collect_temp.append(temp)
86+
self.__collect_temp.append(float(temp))
8787
self.__collect_temp.sort()
8888
return float(temp)
8989

@@ -131,6 +131,12 @@ def get_maximum_recorded(self) -> float:
131131
def get_position_in_parent(self):
132132
return self.__index
133133

134+
def set_high_threshold(self, temperature):
135+
return False
136+
137+
def set_low_threshold(self, temperature):
138+
return False
139+
134140
def thermal_list_get():
135141
l = []
136142
index = 0

0 commit comments

Comments
 (0)