Skip to content

Commit

Permalink
Merge pull request #60 from bimmerconnected/fix-notify
Browse files Browse the repository at this point in the history
Update notify.py to latest HA version
  • Loading branch information
gerard33 authored Mar 15, 2023
2 parents 140572f + d387570 commit fe3f761
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion custom_components/bmw_connected_drive/notify.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,16 @@ def get_service(
class BMWNotificationService(BaseNotificationService):
"""Send Notifications to BMW."""

vehicle_targets: dict[str, MyBMWVehicle]

def __init__(self, targets: dict[str, MyBMWVehicle]) -> None:
"""Set up the notification service."""
self.targets: dict[str, MyBMWVehicle] = targets
self.vehicle_targets = targets

@property
def targets(self) -> dict[str, Any] | None:
"""Return a dictionary of registered targets."""
return self.vehicle_targets

async def async_send_message(self, message: str = "", **kwargs: Any) -> None:
"""Send a message or POI to the car."""
Expand Down

0 comments on commit fe3f761

Please sign in to comment.