From 5c422bb770a1315aa72573fae286bcf86c0c24e2 Mon Sep 17 00:00:00 2001 From: Jan Bouwhuis Date: Thu, 4 Dec 2025 18:37:30 +0100 Subject: [PATCH] Move out example URL and IP of strings.json for reolink (#157970) --- homeassistant/components/reolink/host.py | 4 ++++ homeassistant/components/reolink/strings.json | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/reolink/host.py b/homeassistant/components/reolink/host.py index 4c597b0c0f44..57af24043219 100644 --- a/homeassistant/components/reolink/host.py +++ b/homeassistant/components/reolink/host.py @@ -422,6 +422,8 @@ class ReolinkHost: "name": self._api.nvr_name, "base_url": self._base_url, "network_link": "https://my.home-assistant.io/redirect/network/", + "example_ip": "192.168.1.10", + "example_url": "http://192.168.1.10:8123", }, ) @@ -436,6 +438,8 @@ class ReolinkHost: translation_placeholders={ "base_url": self._base_url, "network_link": "https://my.home-assistant.io/redirect/network/", + "example_ip": "192.168.1.10", + "example_url": "http://192.168.1.10:8123", }, ) else: diff --git a/homeassistant/components/reolink/strings.json b/homeassistant/components/reolink/strings.json index d3c95cab2e91..2dbc0b5b8fc8 100644 --- a/homeassistant/components/reolink/strings.json +++ b/homeassistant/components/reolink/strings.json @@ -1004,7 +1004,7 @@ "title": "Reolink firmware update required" }, "https_webhook": { - "description": "Reolink products can not push motion events to an HTTPS address (SSL), please configure a (local) HTTP address under \"Home Assistant URL\" in the [network settings]({network_link}). The current (local) address is: `{base_url}`, a valid address could, for example, be `http://192.168.1.10:8123` where `192.168.1.10` is the IP of the Home Assistant device", + "description": "Reolink products can not push motion events to an HTTPS address (SSL), please configure a (local) HTTP address under \"Home Assistant URL\" in the [network settings]({network_link}). The current (local) address is: `{base_url}`, a valid address could, for example, be `{example_url}` where `{example_ip}` is the IP of the Home Assistant device", "title": "Reolink webhook URL uses HTTPS (SSL)" }, "password_too_long": { @@ -1016,7 +1016,7 @@ "title": "Reolink incompatible with global SSL certificate" }, "webhook_url": { - "description": "Did not receive initial ONVIF state from {name}. Most likely, the Reolink camera can not reach the current (local) Home Assistant URL `{base_url}`, please configure a (local) HTTP address under \"Home Assistant URL\" in the [network settings]({network_link}) that points to Home Assistant. For example `http://192.168.1.10:8123` where `192.168.1.10` is the IP of the Home Assistant device. Also, make sure the Reolink camera can reach that URL. Using fast motion/AI state polling until the first ONVIF push is received.", + "description": "Did not receive initial ONVIF state from {name}. Most likely, the Reolink camera can not reach the current (local) Home Assistant URL `{base_url}`, please configure a (local) HTTP address under \"Home Assistant URL\" in the [network settings]({network_link}) that points to Home Assistant. For example `{example_url}` where `{example_ip}` is the IP of the Home Assistant device. Also, make sure the Reolink camera can reach that URL. Using fast motion/AI state polling until the first ONVIF push is received.", "title": "Reolink webhook URL unreachable" } },