From a6e5ab783483436585a5dfca320ed0991ee1fc2f Mon Sep 17 00:00:00 2001 From: miro Date: Wed, 18 Sep 2024 01:38:52 +0100 Subject: [PATCH] logs --- ovos_gui_plugin_shell_companion/__init__.py | 2 +- ovos_gui_plugin_shell_companion/brightness.py | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/ovos_gui_plugin_shell_companion/__init__.py b/ovos_gui_plugin_shell_companion/__init__.py index 547e5c6..d0e1c68 100644 --- a/ovos_gui_plugin_shell_companion/__init__.py +++ b/ovos_gui_plugin_shell_companion/__init__.py @@ -79,7 +79,7 @@ def register_bus_events(self): self.handle_display_auto_nightmode_config_set) def handle_remove_namespace(self, message): - LOG.info("Got Clear Namespace Event In Skill") + LOG.debug("Clearing namespace (mycroft.gui.screen.close)") get_skill_namespace = message.data.get("skill_id", "") if get_skill_namespace: self.bus.emit(Message("gui.clear.namespace", diff --git a/ovos_gui_plugin_shell_companion/brightness.py b/ovos_gui_plugin_shell_companion/brightness.py index 46fe243..da7cfc2 100644 --- a/ovos_gui_plugin_shell_companion/brightness.py +++ b/ovos_gui_plugin_shell_companion/brightness.py @@ -123,18 +123,12 @@ def auto_dim_enabled(self) -> bool: Returns: bool: True if auto-dim is enabled, False otherwise. """ - if self.device_interface is None: - return False return self.config.get("auto_dim", True) def start_auto_dim(self, nightmode: bool = False): """ Start the auto-dim functionality. """ - if self.device_interface is None: - LOG.error("brightness control interface not available, auto-dim functionality forcefully disabled") - return - if nightmode: LOG.info("Nightmode: Auto Dim enabled until sunrise") else: