From 56057a638feb2e0d63b264b3a13c36a87d62e51f Mon Sep 17 00:00:00 2001 From: Tom Brien Date: Sun, 30 Aug 2020 20:04:36 +0100 Subject: [PATCH] Clarify when message come from FCM (#39455) --- homeassistant/components/mobile_app/notify.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/homeassistant/components/mobile_app/notify.py b/homeassistant/components/mobile_app/notify.py index f3c79103111..62bb5fdf08d 100644 --- a/homeassistant/components/mobile_app/notify.py +++ b/homeassistant/components/mobile_app/notify.py @@ -144,6 +144,14 @@ class MobileAppNotificationService(BaseNotificationService): f"Internal server error, please try again later: {fallback_error}" ) message = result.get("message", fallback_message) + + if "message" in result: + if message[-1] not in [".", "?", "!"]: + message += "." + message += ( + " This message is generated externally to Home Assistant." + ) + if response.status == 429: _LOGGER.warning(message) log_rate_limits(