Skip to content

Commit

Permalink
fix: Ensure DIAL info from all CC's (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
theychx committed Aug 10, 2017
1 parent b6e8640 commit 7ea9a5f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion catt/controllers.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,8 @@ def __init__(self, device_name, state_check=True):
raise ValueError
self.cast = pychromecast.Chromecast(cached_ip)
except (pychromecast.error.ChromecastConnectionError, ValueError):
self.cast = get_chromecast(device_name)
cast = get_chromecast(device_name)
self.cast = pychromecast.Chromecast(cast.host)
cache.set(self.cast.name, self.cast.host)

self.cast.wait()
Expand Down

0 comments on commit 7ea9a5f

Please sign in to comment.