Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Major refactor and simplification of cast.py #458

Merged
merged 8 commits into from
Mar 8, 2024
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