Skip to content

Commit

Permalink
logs
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl committed Sep 18, 2024
1 parent a85f37d commit a6e5ab7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion ovos_gui_plugin_shell_companion/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
6 changes: 0 additions & 6 deletions ovos_gui_plugin_shell_companion/brightness.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit a6e5ab7

Please sign in to comment.