Skip to content

Commit

Permalink
Remove unused methods apparently leftover from a previous implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
NeonDaniel committed Jan 3, 2024
1 parent 0edaf98 commit 57af942
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions ovos_gui_plugin_shell_companion/brightness.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import datetime
import platform
import subprocess
import threading
import time
Expand Down Expand Up @@ -48,24 +47,6 @@ def __init__(self, bus):
self.bus.on("recognizer_loop:wakeword", self.undim_display)
self.bus.on("recognizer_loop:record_begin", self.undim_display)

def init_event_scheduler(self):
self.event_scheduler = EventSchedulerInterface()
self.event_scheduler.set_id(self.name)
self.event_scheduler.set_bus(self.bus)

@staticmethod
def validate():
if not platform.machine().startswith("arm"):
return False
# check if needed utils installed
if shutil.which("vcgencmd") is None:
LOG.info("Missing vcgencmd command.")
return False
# ddcutil is used only for HDMI displays
if shutil.which("ddcutil"):
LOG.debug("ddcutil not available for HDMI display adjustments")
return True

#### brightness manager - TODO generic non rpi support
# Check if the auto dim is enabled
def is_auto_dim_enabled(self, message=None):
Expand Down

0 comments on commit 57af942

Please sign in to comment.