Add www. to all documentation links (#32063)

* Add www. to all documentation links

* Fix broken redirect uri test
This commit is contained in:
springstan 2020-02-22 01:10:02 +01:00 committed by GitHub
parent 3385893b77
commit b41cbe9885
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 15 additions and 14 deletions

View file

@ -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 # Whitelist the iOS and Android callbacks so that people can link apps
# without being connected to the internet. # without being connected to the internet.
if redirect_uri == "homeassistant://auth-callback" and client_id in ( if redirect_uri == "homeassistant://auth-callback" and client_id in (
"https://home-assistant.io/android", "https://www.home-assistant.io/android",
"https://home-assistant.io/iOS", "https://www.home-assistant.io/iOS",
): ):
return True return True

View file

@ -66,7 +66,7 @@ from .helpers import (
_LOGGER = logging.getLogger(__name__) _LOGGER = logging.getLogger(__name__)
CONF_IGNORE_CEC = "ignore_cec" 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_CAST = (
SUPPORT_PAUSE SUPPORT_PAUSE

View file

@ -141,7 +141,7 @@ def setup_platform(hass, config, add_entities, discovery_info=None):
_LOGGER.warning( _LOGGER.warning(
"The honeywell component has been deprecated for EU (i.e. non-US) " "The honeywell component has been deprecated for EU (i.e. non-US) "
"systems. For EU-based systems, use the evohome component, " "systems. For EU-based systems, use the evohome component, "
"see: https://home-assistant.io/integrations/evohome" "see: https://www.home-assistant.io/integrations/evohome"
) )

View file

@ -58,7 +58,7 @@ async def async_get_service(hass, config, discovery_info=None):
_LOGGER.warning( _LOGGER.warning(
"Kodi host name should no longer contain http:// See updated " "Kodi host name should no longer contain http:// See updated "
"definitions here: " "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" http_protocol = "https" if encryption else "http"

View file

@ -71,7 +71,7 @@ async def async_setup_entry(hass, entry, async_add_entities):
wstr = ( wstr = (
variable + " is no a longer supported " variable + " is no a longer supported "
"monitored_conditions. See " "monitored_conditions. See "
"https://home-assistant.io/integrations/binary_sensor.nest/ " "https://www.home-assistant.io/integrations/binary_sensor.nest/ "
"for valid options." "for valid options."
) )
_LOGGER.error(wstr) _LOGGER.error(wstr)

View file

@ -90,14 +90,14 @@ async def async_setup_entry(hass, entry, async_add_entities):
if variable in DEPRECATED_WEATHER_VARS: if variable in DEPRECATED_WEATHER_VARS:
wstr = ( wstr = (
"Nest no longer provides weather data like %s. See " "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 "for a list of other weather integrations to use." % variable
) )
else: else:
wstr = ( wstr = (
variable + " is no a longer supported " variable + " is no a longer supported "
"monitored_conditions. See " "monitored_conditions. See "
"https://home-assistant.io/integrations/" "https://www.home-assistant.io/integrations/"
"binary_sensor.nest/ for valid options." "binary_sensor.nest/ for valid options."
) )
_LOGGER.error(wstr) _LOGGER.error(wstr)

View file

@ -120,7 +120,7 @@ class PandoraMediaPlayer(MediaPlayerDevice):
_LOGGER.warning( _LOGGER.warning(
"The pianobar client is not configured to log in. " "The pianobar client is not configured to log in. "
"Please create a configuration file for it as described at " "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 # pass through the email/password prompts to quit cleanly
self._pianobar.sendcontrol("m") self._pianobar.sendcontrol("m")
@ -384,6 +384,6 @@ def _pianobar_exists():
_LOGGER.warning( _LOGGER.warning(
"The Pandora integration depends on the Pianobar client, which " "The Pandora integration depends on the Pianobar client, which "
"cannot be found. Please install using instructions at " "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 return False

View file

@ -77,7 +77,7 @@ async def async_setup(hass, config):
if config.get(CONF_ELEVATION) is not None: if config.get(CONF_ELEVATION) is not None:
_LOGGER.warning( _LOGGER.warning(
"Elevation is now configured in Home Assistant core. " "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) Sun(hass)
return True return True

View file

@ -89,7 +89,7 @@ scene: !include {SCENE_CONFIG_PATH}
""" """
DEFAULT_SECRETS = """ DEFAULT_SECRETS = """
# Use this file to store secrets like usernames and passwords. # 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 some_password: welcome
""" """
TTS_PRE_92 = """ TTS_PRE_92 = """

View file

@ -11,7 +11,7 @@ PROJECT_PACKAGE_NAME = "homeassistant"
PROJECT_LICENSE = "Apache License 2.0" PROJECT_LICENSE = "Apache License 2.0"
PROJECT_AUTHOR = "The Home Assistant Authors" PROJECT_AUTHOR = "The Home Assistant Authors"
PROJECT_COPYRIGHT = " 2013-{}, {}".format(dt.now().year, PROJECT_AUTHOR) 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_EMAIL = "hello@home-assistant.io"
PROJECT_GITHUB_USERNAME = "home-assistant" PROJECT_GITHUB_USERNAME = "home-assistant"

View file

@ -169,7 +169,8 @@ async def test_find_link_tag_max_size(hass, mock_session):
@pytest.mark.parametrize( @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): async def test_verify_redirect_uri_android_ios(client_id):
"""Test that we verify redirect uri correctly for Android/iOS.""" """Test that we verify redirect uri correctly for Android/iOS."""