Skip to content

Commit

Permalink
chore: revert panctl.py back to pydbus
Browse files Browse the repository at this point in the history
  • Loading branch information
chookity-pokk committed Nov 15, 2024
1 parent 46a762d commit 727f087
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pantalaimon/panctl.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
from prompt_toolkit.completion import Completer, Completion, PathCompleter
from prompt_toolkit.document import Document
from prompt_toolkit.patch_stdout import patch_stdout
from dasbus.connection import SessionMessageBus
from pydbus import SessionBus

PTK2 = ptk_version.startswith("2.")

Expand Down Expand Up @@ -404,8 +404,8 @@ class PanCtl:
commands = list(command_help.keys())

def __attrs_post_init__(self):
self.bus = SessionMessageBus()
self.pan_bus = self.bus.get_connection("org.pantalaimon1")
self.bus = SessionBus()
self.pan_bus = self.bus.get("org.pantalaimon1")

self.ctl = self.pan_bus["org.pantalaimon1.control"]
self.devices = self.pan_bus["org.pantalaimon1.devices"]
Expand Down

0 comments on commit 727f087

Please sign in to comment.