Add www. to all documentation links (#32063)
* Add www. to all documentation links * Fix broken redirect uri test
This commit is contained in:
parent
3385893b77
commit
b41cbe9885
11 changed files with 15 additions and 14 deletions
|
@ -33,8 +33,8 @@ async def verify_redirect_uri(hass, client_id, redirect_uri):
|
|||
# Whitelist the iOS and Android callbacks so that people can link apps
|
||||
# without being connected to the internet.
|
||||
if redirect_uri == "homeassistant://auth-callback" and client_id in (
|
||||
"https://home-assistant.io/android",
|
||||
"https://home-assistant.io/iOS",
|
||||
"https://www.home-assistant.io/android",
|
||||
"https://www.home-assistant.io/iOS",
|
||||
):
|
||||
return True
|
||||
|
||||
|
|
|
@ -66,7 +66,7 @@ from .helpers import (
|
|||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
CONF_IGNORE_CEC = "ignore_cec"
|
||||
CAST_SPLASH = "https://home-assistant.io/images/cast/splash.png"
|
||||
CAST_SPLASH = "https://www.home-assistant.io/images/cast/splash.png"
|
||||
|
||||
SUPPORT_CAST = (
|
||||
SUPPORT_PAUSE
|
||||
|
|
|
@ -141,7 +141,7 @@ def setup_platform(hass, config, add_entities, discovery_info=None):
|
|||
_LOGGER.warning(
|
||||
"The honeywell component has been deprecated for EU (i.e. non-US) "
|
||||
"systems. For EU-based systems, use the evohome component, "
|
||||
"see: https://home-assistant.io/integrations/evohome"
|
||||
"see: https://www.home-assistant.io/integrations/evohome"
|
||||
)
|
||||
|
||||
|
||||
|
|
|
@ -58,7 +58,7 @@ async def async_get_service(hass, config, discovery_info=None):
|
|||
_LOGGER.warning(
|
||||
"Kodi host name should no longer contain http:// See updated "
|
||||
"definitions here: "
|
||||
"https://home-assistant.io/integrations/media_player.kodi/"
|
||||
"https://www.home-assistant.io/integrations/media_player.kodi/"
|
||||
)
|
||||
|
||||
http_protocol = "https" if encryption else "http"
|
||||
|
|
|
@ -71,7 +71,7 @@ async def async_setup_entry(hass, entry, async_add_entities):
|
|||
wstr = (
|
||||
variable + " is no a longer supported "
|
||||
"monitored_conditions. See "
|
||||
"https://home-assistant.io/integrations/binary_sensor.nest/ "
|
||||
"https://www.home-assistant.io/integrations/binary_sensor.nest/ "
|
||||
"for valid options."
|
||||
)
|
||||
_LOGGER.error(wstr)
|
||||
|
|
|
@ -90,14 +90,14 @@ async def async_setup_entry(hass, entry, async_add_entities):
|
|||
if variable in DEPRECATED_WEATHER_VARS:
|
||||
wstr = (
|
||||
"Nest no longer provides weather data like %s. See "
|
||||
"https://home-assistant.io/integrations/#weather "
|
||||
"https://www.home-assistant.io/integrations/#weather "
|
||||
"for a list of other weather integrations to use." % variable
|
||||
)
|
||||
else:
|
||||
wstr = (
|
||||
variable + " is no a longer supported "
|
||||
"monitored_conditions. See "
|
||||
"https://home-assistant.io/integrations/"
|
||||
"https://www.home-assistant.io/integrations/"
|
||||
"binary_sensor.nest/ for valid options."
|
||||
)
|
||||
_LOGGER.error(wstr)
|
||||
|
|
|
@ -120,7 +120,7 @@ class PandoraMediaPlayer(MediaPlayerDevice):
|
|||
_LOGGER.warning(
|
||||
"The pianobar client is not configured to log in. "
|
||||
"Please create a configuration file for it as described at "
|
||||
"https://home-assistant.io/integrations/pandora/"
|
||||
"https://www.home-assistant.io/integrations/pandora/"
|
||||
)
|
||||
# pass through the email/password prompts to quit cleanly
|
||||
self._pianobar.sendcontrol("m")
|
||||
|
@ -384,6 +384,6 @@ def _pianobar_exists():
|
|||
_LOGGER.warning(
|
||||
"The Pandora integration depends on the Pianobar client, which "
|
||||
"cannot be found. Please install using instructions at "
|
||||
"https://home-assistant.io/integrations/media_player.pandora/"
|
||||
"https://www.home-assistant.io/integrations/media_player.pandora/"
|
||||
)
|
||||
return False
|
||||
|
|
|
@ -77,7 +77,7 @@ async def async_setup(hass, config):
|
|||
if config.get(CONF_ELEVATION) is not None:
|
||||
_LOGGER.warning(
|
||||
"Elevation is now configured in Home Assistant core. "
|
||||
"See https://home-assistant.io/docs/configuration/basic/"
|
||||
"See https://www.home-assistant.io/docs/configuration/basic/"
|
||||
)
|
||||
Sun(hass)
|
||||
return True
|
||||
|
|
|
@ -89,7 +89,7 @@ scene: !include {SCENE_CONFIG_PATH}
|
|||
"""
|
||||
DEFAULT_SECRETS = """
|
||||
# Use this file to store secrets like usernames and passwords.
|
||||
# Learn more at https://home-assistant.io/docs/configuration/secrets/
|
||||
# Learn more at https://www.home-assistant.io/docs/configuration/secrets/
|
||||
some_password: welcome
|
||||
"""
|
||||
TTS_PRE_92 = """
|
||||
|
|
2
setup.py
2
setup.py
|
@ -11,7 +11,7 @@ PROJECT_PACKAGE_NAME = "homeassistant"
|
|||
PROJECT_LICENSE = "Apache License 2.0"
|
||||
PROJECT_AUTHOR = "The Home Assistant Authors"
|
||||
PROJECT_COPYRIGHT = " 2013-{}, {}".format(dt.now().year, PROJECT_AUTHOR)
|
||||
PROJECT_URL = "https://home-assistant.io/"
|
||||
PROJECT_URL = "https://www.home-assistant.io/"
|
||||
PROJECT_EMAIL = "hello@home-assistant.io"
|
||||
|
||||
PROJECT_GITHUB_USERNAME = "home-assistant"
|
||||
|
|
|
@ -169,7 +169,8 @@ async def test_find_link_tag_max_size(hass, mock_session):
|
|||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"client_id", ["https://home-assistant.io/android", "https://home-assistant.io/iOS"]
|
||||
"client_id",
|
||||
["https://www.home-assistant.io/android", "https://www.home-assistant.io/iOS"],
|
||||
)
|
||||
async def test_verify_redirect_uri_android_ios(client_id):
|
||||
"""Test that we verify redirect uri correctly for Android/iOS."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue