Skip to content

Commit 2bed7af

Browse files
authored
Move out example URL and IP of strings.json for reolink (home-assistant#157970)
1 parent 2eeac5f commit 2bed7af

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

homeassistant/components/reolink/host.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,8 @@ async def _async_check_onvif_long_poll(self, *_: Any) -> None:
422422
"name": self._api.nvr_name,
423423
"base_url": self._base_url,
424424
"network_link": "https://my.home-assistant.io/redirect/network/",
425+
"example_ip": "192.168.1.10",
426+
"example_url": "http://192.168.1.10:8123",
425427
},
426428
)
427429

@@ -436,6 +438,8 @@ async def _async_check_onvif_long_poll(self, *_: Any) -> None:
436438
translation_placeholders={
437439
"base_url": self._base_url,
438440
"network_link": "https://my.home-assistant.io/redirect/network/",
441+
"example_ip": "192.168.1.10",
442+
"example_url": "http://192.168.1.10:8123",
439443
},
440444
)
441445
else:

homeassistant/components/reolink/strings.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1004,7 +1004,7 @@
10041004
"title": "Reolink firmware update required"
10051005
},
10061006
"https_webhook": {
1007-
"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",
1007+
"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",
10081008
"title": "Reolink webhook URL uses HTTPS (SSL)"
10091009
},
10101010
"password_too_long": {
@@ -1016,7 +1016,7 @@
10161016
"title": "Reolink incompatible with global SSL certificate"
10171017
},
10181018
"webhook_url": {
1019-
"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.",
1019+
"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.",
10201020
"title": "Reolink webhook URL unreachable"
10211021
}
10221022
},

0 commit comments

Comments
 (0)