Commit Graph

93 Commits

Author SHA1 Message Date
atse 21a2764c3a Remove error handling for connecting task
Just let the exception propagate, even when stopping the connection
2024-10-07 17:48:24 +08:00
atse d576395ad2 Update thermostat state from controller code 2024-10-07 17:48:24 +08:00
atse 062094f7a8 State update explicitly 2024-10-07 17:48:24 +08:00
atse bddcb37a8d Zero limits warning cleanup 2024-10-07 17:48:24 +08:00
atse 863bb58959 No need for async as well 2024-10-07 17:48:24 +08:00
atse 82c75ce293 No need for async 2024-10-07 17:48:24 +08:00
atse bb66f9b5a7 Remove extra imports 2024-10-07 17:48:24 +08:00
atse 7aa340b0b4 report group 2024-10-07 17:48:24 +08:00
atse 892b9f8bf2 end_session in thermostat itself afterall 2024-10-07 17:48:24 +08:00
atse 495a92bda6 Reorder MainWindow 2024-10-07 17:48:24 +08:00
atse e6805c61dd Rearrange MainWindow.__init__ 2024-10-07 17:48:24 +08:00
atse 0024d2b8b5 Thermostat: Add disconnect callback
For communicating with the autotuner before the client fully
disconnects

Also then there's no need for explicitly resetting autotune elements
2024-10-07 17:48:24 +08:00
atse 78379ddacc Simply test for connectivity for turning PID off 2024-10-07 17:48:24 +08:00
atse 226ec3b068 Fix pressing enter not working in conn menu 2024-10-07 17:48:24 +08:00
atse 322b97bd52 Assign connection_errored as well 2024-10-07 17:48:24 +08:00
atse da55d07bdb Back out 2024-10-07 17:48:24 +08:00
atse 4c9df5e1a8 Put UI changes into conn_menu 2024-10-07 17:48:24 +08:00
atse 382e5d916f ConnectionBtn + StatusLbl 2024-10-07 17:48:24 +08:00
atse 6d518560df Clear Graph UI changes 2024-10-07 17:48:24 +08:00
atse 8f8517766d Concentrate ThermostatCtrlMenu UI changes 2024-10-07 17:48:24 +08:00
atse 90227107ce Descriptive name 2024-10-07 17:48:24 +08:00
atse 029866ee22 Refactor repeated stuff 2024-10-07 17:48:24 +08:00
atse c25c49d8c1 Split PID handler UI up 2024-10-07 17:48:24 +08:00
atse b2f6a61a71 Fix hwrev getting 2024-10-07 17:48:24 +08:00
atse bae37b554c hwrev updates 2024-10-07 17:48:24 +08:00
atse fcb5585c0a Fix info boxes for load/saving from flash 2024-10-07 17:48:24 +08:00
atse 72ca1f16a9 Move reset request to thermostat control menu
We don't get auto reconnect anymore
2024-10-07 17:48:24 +08:00
atse 3aeef04330 Move pid autotuning request to CtrlPanel
And update autotune UI only on state change instead of every single
report update
2024-10-07 17:48:24 +08:00
atse 4407e5c97a Move channelGraph stuff inside LiveDataPlotter 2024-10-07 17:48:24 +08:00
atse a82e163d58 Move plot_options_menu stuff into menu 2024-10-07 17:48:24 +08:00
atse 0f117f8ee8 Move autotune ticking connect 2024-10-07 17:48:24 +08:00
atse 377c2dec48 Get thermostat_ctrl_menu to subscribe to hwrev updates 2024-10-07 17:48:24 +08:00
atse 7cf8d6ee70 Fix loading all channel settings would bring up 2 info boxes 2024-10-07 17:48:24 +08:00
atse ef86336b95 Add back asyncSlot to save_cfg_request 2024-10-07 17:48:24 +08:00
atse bc50b295bb hw_rev 2024-10-07 17:48:24 +08:00
atse 4907678d53 fan_update: tec_qt to thermostat_ctrl_menu 2024-10-07 17:48:24 +08:00
atse 9ede52de93 Fix updating status label for hwrev = None 2024-10-07 17:48:24 +08:00
atse 66db9bcc57 Put some menu requests in menu itself 2024-10-07 17:48:24 +08:00
atse f29095a0da Broadcast ConnectionState changes from Thermostat 2024-10-07 17:48:24 +08:00
atse 7e235c3fea Move sigActivatedHandle to CtrlPanel 2024-10-07 17:48:24 +08:00
atse 7ec7ae7329 Put send_command in CtrlPanel 2024-10-07 17:48:24 +08:00
atse 9f0064a61c Extra bail removed 2024-10-07 17:48:24 +08:00
atse d8c7db3f66 return hwrev when start_session 2024-10-07 17:48:24 +08:00
atse b380d66750 Stuff non-UI changes in Thermostat model 2024-10-07 17:48:24 +08:00
atse 56c3e30c6b Base Thermostat connectivity UI changes to state 2024-10-07 17:48:24 +08:00
atse 5c6652cdcb Remove wait_for
OSError raised anyways
2024-10-07 17:48:24 +08:00
atse 05dd0afe03 Simplify on_connect_btn_clicked
Raise if OSError
2024-10-07 17:48:24 +08:00
atse af53926b01 Connecting task moved? 2024-10-07 17:48:24 +08:00
atse f66d029915 Exclusively use the Thermostat object as a medium
All calls to the Thermostat should be forwarded by the medium.
2024-10-07 17:48:24 +08:00
atse cf39eee997 Integrate WrappedClient into Thermostat model 2024-10-07 17:48:24 +08:00