Skip to content

Commit

Permalink
Correct mistake in PR#345 (#346)
Browse files Browse the repository at this point in the history
  • Loading branch information
emontnemery authored Apr 8, 2020
1 parent 64d7fb1 commit 78b4a02
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pychromecast/dial.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import logging
import requests

from .const import CAST_TYPE_CHROMECAST
from .discovery import get_info_from_service, get_host_from_service_info

XML_NS_UPNP_DEVICE = "{urn:schemas-upnp-org:device-1-0}"
Expand Down Expand Up @@ -81,6 +82,8 @@ def get_device_status(host, services=None, zconf=None):

udn = status.get("ssdp_udn", None)

cast_type = CAST_TYPE_CHROMECAST

uuid = None
if udn:
uuid = UUID(udn.replace("-", ""))
Expand Down

0 comments on commit 78b4a02

Please sign in to comment.