Skip to content

Commit

Permalink
Add missing remove_service
Browse files Browse the repository at this point in the history
  • Loading branch information
postlund committed Oct 30, 2019
1 parent 3944504 commit fda8609
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pyatv/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ def add_service(self, zeroconf, service_type, name):
"""Handle callback from zeroconf when a service has been discovered."""
asyncio.ensure_future(self._internal_add(zeroconf, service_type, name))

def remove_service(self, zeroconf, service_type, name):
"""Handle callback when a service is removed."""

async def _internal_add(self, zeroconf, service_type, name):
info = await zeroconf.get_service_info(
service_type, name, timeout=2000)
Expand Down

0 comments on commit fda8609

Please sign in to comment.