Skip to content

Commit

Permalink
revert change of notify method (#14)
Browse files Browse the repository at this point in the history
make parameter item_name optional
  • Loading branch information
tr4nt0r authored Feb 18, 2024
1 parent fe007ce commit 99808b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bring_api/bring.py
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ async def notify(
self,
list_uuid: str,
notification_type: BringNotificationType,
item_name: str,
item_name: Optional[str] = None,
) -> aiohttp.ClientResponse:
"""Send a push notification to all other members of a shared list.
Expand Down
2 changes: 1 addition & 1 deletion test.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ async def test_push_notifications(bring: Bring, lst: BringList):
"""Test sending push notifications."""

# Send a going shopping notification
await bring.notify(lst["listUuid"], BringNotificationType.GOING_SHOPPING, "")
await bring.notify(lst["listUuid"], BringNotificationType.GOING_SHOPPING)

# Send a urgent message with argument item name
await bring.notify(
Expand Down

0 comments on commit 99808b3

Please sign in to comment.