config: deprecate get_main_config_option

This commit is contained in:
alfrix
2022-06-27 11:17:04 -03:00
committed by Alfredo Monclus
parent 88ea416110
commit a445b89f13
7 changed files with 16 additions and 19 deletions

View File

@@ -108,7 +108,7 @@ class MainPanel(MenuPanel):
image = "fan"
class_name = "graph_label_fan_%s" % f
type = "fan"
elif self._config.get_main_config_option('only_heaters') == "True":
elif self._config.get_main_config().getboolean("only_heaters", False):
return False
else:
s = 1