deragon / autopoweroff

Manage automatic poweroff and other actions (suspend / custom) when specific conditions are reunited.
GNU General Public License v2.0
52 stars 7 forks source link

How to disable no action time range? #25

Closed tjmcewan closed 2 years ago

tjmcewan commented 3 years ago

I'll just set it to 0 & 0 for now. But potentially the system should handle commented config or explain how to disable each section? 🙏🏻

Exception in thread ApoObserver:
Traceback (most recent call last):
  File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
    self.run()
  File "/usr/share/python/modules/ApoObserverNoActionTimeRange.py", line 52, in run
    self.configuration.noactiontimerange[ApoConfig.ENDHOUR]:
TypeError: '<=' not supported between instances of 'NoneType' and 'NoneType'

Thanks again!

deragon commented 2 years ago

Fixed with commit https://github.com/deragon/autopoweroff/commit/5df355f6a12bd8fbfe8643d806d762be28d733b4.