Skip to content

Commit

Permalink
fix: Fix discovery function in the API (#406)
Browse files Browse the repository at this point in the history
The path to get the ip from pychromecast is now c.socket_client.host

Closes #405
  • Loading branch information
soreau committed Jun 28, 2022
1 parent a648d4e commit 9cc0b09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion catt/api.py
Expand Up @@ -164,4 +164,4 @@ def volumedown(self, delta: float) -> None:
def discover() -> List[CattDevice]:
"""Perform discovery of devices present on local network, and return result."""

return [CattDevice(ip_addr=c.ip) for c in get_casts()]
return [CattDevice(ip_addr=c.socket_client.host) for c in get_casts()]

0 comments on commit 9cc0b09

Please sign in to comment.