Fix notify targets for bmw_connected_drive (#87503)
Co-authored-by: rikroe <rikroe@users.noreply.github.com>
This commit is contained in:
parent
a61e87c46d
commit
406a29912d
1 changed files with 8 additions and 1 deletions
|
@ -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."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue