diff --git a/homeassistant/components/auth/indieauth.py b/homeassistant/components/auth/indieauth.py index 3266ae65d7a..a2d015c279b 100644 --- a/homeassistant/components/auth/indieauth.py +++ b/homeassistant/components/auth/indieauth.py @@ -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 diff --git a/homeassistant/components/cast/media_player.py b/homeassistant/components/cast/media_player.py index 03174134502..4e259038f14 100644 --- a/homeassistant/components/cast/media_player.py +++ b/homeassistant/components/cast/media_player.py @@ -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 diff --git a/homeassistant/components/honeywell/climate.py b/homeassistant/components/honeywell/climate.py index f8537bfe96a..ece8257a713 100644 --- a/homeassistant/components/honeywell/climate.py +++ b/homeassistant/components/honeywell/climate.py @@ -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" ) diff --git a/homeassistant/components/kodi/notify.py b/homeassistant/components/kodi/notify.py index fae5c856d9d..aa3fe0610a7 100644 --- a/homeassistant/components/kodi/notify.py +++ b/homeassistant/components/kodi/notify.py @@ -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" diff --git a/homeassistant/components/nest/binary_sensor.py b/homeassistant/components/nest/binary_sensor.py index 1ee500c793c..a029fcfe7d6 100644 --- a/homeassistant/components/nest/binary_sensor.py +++ b/homeassistant/components/nest/binary_sensor.py @@ -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) diff --git a/homeassistant/components/nest/sensor.py b/homeassistant/components/nest/sensor.py index f8ae56f838c..d52df4c6586 100644 --- a/homeassistant/components/nest/sensor.py +++ b/homeassistant/components/nest/sensor.py @@ -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) diff --git a/homeassistant/components/pandora/media_player.py b/homeassistant/components/pandora/media_player.py index 4b3c25862a1..322765ac082 100644 --- a/homeassistant/components/pandora/media_player.py +++ b/homeassistant/components/pandora/media_player.py @@ -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 diff --git a/homeassistant/components/sun/__init__.py b/homeassistant/components/sun/__init__.py index 213952bead3..9529a9c0cad 100644 --- a/homeassistant/components/sun/__init__.py +++ b/homeassistant/components/sun/__init__.py @@ -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 diff --git a/homeassistant/config.py b/homeassistant/config.py index 6ff571f0d6b..abb8511cab0 100644 --- a/homeassistant/config.py +++ b/homeassistant/config.py @@ -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 = """ diff --git a/setup.py b/setup.py index 3c7909428be..eb360c93cf8 100755 --- a/setup.py +++ b/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" diff --git a/tests/components/auth/test_indieauth.py b/tests/components/auth/test_indieauth.py index ce8edae1466..b359144ab97 100644 --- a/tests/components/auth/test_indieauth.py +++ b/tests/components/auth/test_indieauth.py @@ -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."""