diff --git a/homeassistant-samsung-frame-art-beta/art.py b/homeassistant-samsung-frame-art-beta/art.py index e6aee4d..c520c02 100755 --- a/homeassistant-samsung-frame-art-beta/art.py +++ b/homeassistant-samsung-frame-art-beta/art.py @@ -32,20 +32,23 @@ def parseargs(): # Set the path to the folder containing the images folder_path = '/media/frame' -matte = args.matte -matte_color = args.matte_color -# Set the matte and matte color +async def main(): + args = parseargs() -if matte != 'none': - matte_var = f"{matte}_{matte_color}" -else: - matte_var = matte + + matte = args.matte + matte_color = args.matte_color + + # Set the matte and matte color + + if matte != 'none': + matte_var = f"{matte}_{matte_color}" + else: + matte_var = matte -async def main(): - args = parseargs() tv = SamsungTVAsyncArt(host=args.ip, port=8002) await tv.start_listening()