The entrypoint of the application still remains the main.py class, but I have created a HomeSensorHub class which has a run function to set up everything needed for the application. Main will only initialise the HomeSensorHub object and call its run function instead of having the logic of this object, but cluttered as it was before.
The entrypoint of the application still remains the main.py class, but I have created a HomeSensorHub class which has a run function to set up everything needed for the application. Main will only initialise the HomeSensorHub object and call its run function instead of having the logic of this object, but cluttered as it was before.