GitHub workflow and fixes

This commit is contained in:
Stephen Horvath
2025-03-20 17:17:14 +10:00
parent 754fbd868b
commit c1ec487145
5 changed files with 45 additions and 2 deletions

View File

@@ -0,0 +1,2 @@
from . import main
main()

View File

@@ -95,6 +95,10 @@ class ThermalsPage(Gtk.Box):
self.fan_mode.set_sensitive(False)
# Temperature sensors
while temp_child := self.temperatures.get_last_child():
self.temperatures.remove(temp_child)
self.temp_items.clear()
try:
ec_temp_sensors = ec_commands.thermal.get_temp_sensors(app.cros_ec)
except ec_exceptions.ECError as e:

View File

@@ -43,5 +43,5 @@ if __name__ == '__main__':
resource = Gio.Resource.load(os.path.join(pkgdatadir, 'yafi.gresource'))
resource._register()
from yafi import main
sys.exit(main.main())
import yafi
sys.exit(yafi.main())