Skip to content

Commit

Permalink
Fix resettin status (#313)
Browse files Browse the repository at this point in the history
  • Loading branch information
balloob authored Sep 11, 2019
1 parent e9a92e5 commit 84f72dd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions pychromecast/controllers/homeassistant.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,15 @@ def hass_connected(self):
and self.status["hassUrl"] == self.hass_url
)

def channel_connected(self):
""" Called when a channel has been openend that supports the
namespace of this controller. """
self.get_status()

def channel_disconnected(self):
""" Called when a channel is disconnected. """
self.status = None

def receive_message(self, message, data):
"""Called when a message is received."""
if data.get("type") == "receiver_status":
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setup(
name="PyChromecast",
version="4.0.0",
version="4.0.1",
license="MIT",
url="https://github.com/balloob/pychromecast",
author="Paulus Schoutsen",
Expand Down

0 comments on commit 84f72dd

Please sign in to comment.