mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
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
@ -52,9 +52,16 @@ def get_service(
|
|||||||
class BMWNotificationService(BaseNotificationService):
|
class BMWNotificationService(BaseNotificationService):
|
||||||
"""Send Notifications to BMW."""
|
"""Send Notifications to BMW."""
|
||||||
|
|
||||||
|
vehicle_targets: dict[str, MyBMWVehicle]
|
||||||
|
|
||||||
def __init__(self, targets: dict[str, MyBMWVehicle]) -> None:
|
def __init__(self, targets: dict[str, MyBMWVehicle]) -> None:
|
||||||
"""Set up the notification service."""
|
"""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:
|
async def async_send_message(self, message: str = "", **kwargs: Any) -> None:
|
||||||
"""Send a message or POI to the car."""
|
"""Send a message or POI to the car."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user