Skip to content

Commit

Permalink
Merge pull request #458 from xsdg/cast_cleanup
Browse files Browse the repository at this point in the history
Major refactor and simplification of cast.py
  • Loading branch information
xsdg authored Mar 8, 2024
2 parents 0759880 + 20023f4 commit 5a17e40
Show file tree
Hide file tree
Showing 5 changed files with 477 additions and 336 deletions.
9 changes: 4 additions & 5 deletions bin/mkchromecast
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,11 @@ import mkchromecast
from mkchromecast.version import __version__
from mkchromecast.audio_devices import (inputint, inputdev, outputdev,
outputint)
from mkchromecast.cast import Casting
import mkchromecast.colors as colors
from mkchromecast import cast
from mkchromecast import colors
from mkchromecast.constants import OpMode
from mkchromecast.pulseaudio import create_sink, get_sink_list, remove_sink
from mkchromecast.utils import terminate, checkmktmp, writePidFile
from mkchromecast.messages import print_available_devices


def maybe_execute_single_action(mkcc: mkchromecast.Mkchromecast):
Expand Down Expand Up @@ -51,10 +50,10 @@ class CastProcess(object):
self.mkcc = mkcc

# Type declarations
self.cc: Casting
self.cc: cast.Casting

def run(self):
self.cc = Casting(self.mkcc)
self.cc = cast.Casting(self.mkcc)
checkmktmp()
writePidFile()

Expand Down
Loading

0 comments on commit 5a17e40

Please sign in to comment.