Skip to content

Commit

Permalink
Update zeroconf example with future mandatory handler
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdwetering committed Jul 27, 2023
1 parent 43bafe0 commit 7a29600
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions example_zeroconf.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
from zeroconf import ServiceBrowser, Zeroconf

class MyListener:
def update_service(self, zc: Zeroconf, type_: str, name: str) -> None:
pass

def remove_service(self, zeroconf, type, name):
print("Service %s removed" % (name,))

Expand Down

0 comments on commit 7a29600

Please sign in to comment.