From a2c3c33b22a6a26f1b20d8f94f9eb615019995d7 Mon Sep 17 00:00:00 2001 From: springstan <46536646+springstan@users.noreply.github.com> Date: Sat, 3 Oct 2020 00:04:11 +0200 Subject: [PATCH] Use core GitHub URL in all files (#41089) --- docs/source/_templates/links.html | 2 +- homeassistant/components/ecobee/binary_sensor.py | 2 +- homeassistant/components/ecobee/climate.py | 2 +- homeassistant/components/ecobee/sensor.py | 2 +- homeassistant/components/ecobee/weather.py | 2 +- homeassistant/components/edl21/sensor.py | 2 +- homeassistant/components/sun/__init__.py | 2 +- homeassistant/components/vizio/media_player.py | 2 +- homeassistant/components/xiaomi_aqara/binary_sensor.py | 2 +- homeassistant/helpers/config_validation.py | 2 +- homeassistant/helpers/deprecation.py | 2 +- homeassistant/helpers/entity.py | 2 +- homeassistant/util/logging.py | 2 +- tests/auth/providers/test_homeassistant.py | 2 +- .../homekit_controller/specific_devices/test_aqara_gateway.py | 2 +- .../homekit_controller/specific_devices/test_ecobee3.py | 2 +- .../specific_devices/test_ecobee_occupancy.py | 2 +- .../homekit_controller/specific_devices/test_koogeek_ls1.py | 2 +- .../homekit_controller/specific_devices/test_lennox_e30.py | 2 +- .../specific_devices/test_simpleconnect_fan.py | 2 +- tests/helpers/test_entity.py | 2 +- 21 files changed, 21 insertions(+), 21 deletions(-) diff --git a/docs/source/_templates/links.html b/docs/source/_templates/links.html index 53a8d1e425d..7982649f72e 100644 --- a/docs/source/_templates/links.html +++ b/docs/source/_templates/links.html @@ -1,6 +1,6 @@ diff --git a/homeassistant/components/ecobee/binary_sensor.py b/homeassistant/components/ecobee/binary_sensor.py index 64c4b07ed1f..9593fc0e497 100644 --- a/homeassistant/components/ecobee/binary_sensor.py +++ b/homeassistant/components/ecobee/binary_sensor.py @@ -70,7 +70,7 @@ class EcobeeBinarySensor(BinarySensorEntity): _LOGGER.error( "Model number for ecobee thermostat %s not recognized. " "Please visit this link and provide the following information: " - "https://github.com/home-assistant/home-assistant/issues/27172 " + "https://github.com/home-assistant/core/issues/27172 " "Unrecognized model number: %s", thermostat["name"], thermostat["modelNumber"], diff --git a/homeassistant/components/ecobee/climate.py b/homeassistant/components/ecobee/climate.py index dcb21ac41b1..ccfddca4b03 100644 --- a/homeassistant/components/ecobee/climate.py +++ b/homeassistant/components/ecobee/climate.py @@ -351,7 +351,7 @@ class Thermostat(ClimateEntity): _LOGGER.error( "Model number for ecobee thermostat %s not recognized. " "Please visit this link and provide the following information: " - "https://github.com/home-assistant/home-assistant/issues/27172 " + "https://github.com/home-assistant/core/issues/27172 " "Unrecognized model number: %s", self.name, self.thermostat["modelNumber"], diff --git a/homeassistant/components/ecobee/sensor.py b/homeassistant/components/ecobee/sensor.py index a3276c53e3b..cfbaa7a4516 100644 --- a/homeassistant/components/ecobee/sensor.py +++ b/homeassistant/components/ecobee/sensor.py @@ -82,7 +82,7 @@ class EcobeeSensor(Entity): _LOGGER.error( "Model number for ecobee thermostat %s not recognized. " "Please visit this link and provide the following information: " - "https://github.com/home-assistant/home-assistant/issues/27172 " + "https://github.com/home-assistant/core/issues/27172 " "Unrecognized model number: %s", thermostat["name"], thermostat["modelNumber"], diff --git a/homeassistant/components/ecobee/weather.py b/homeassistant/components/ecobee/weather.py index 71c1d263e02..7774a6648a5 100644 --- a/homeassistant/components/ecobee/weather.py +++ b/homeassistant/components/ecobee/weather.py @@ -74,7 +74,7 @@ class EcobeeWeather(WeatherEntity): _LOGGER.error( "Model number for ecobee thermostat %s not recognized. " "Please visit this link and provide the following information: " - "https://github.com/home-assistant/home-assistant/issues/27172 " + "https://github.com/home-assistant/core/issues/27172 " "Unrecognized model number: %s", thermostat["name"], thermostat["modelNumber"], diff --git a/homeassistant/components/edl21/sensor.py b/homeassistant/components/edl21/sensor.py index 0bc4c21fc2f..5eb7542fed9 100644 --- a/homeassistant/components/edl21/sensor.py +++ b/homeassistant/components/edl21/sensor.py @@ -145,7 +145,7 @@ class EDL21: elif obis not in self._OBIS_BLACKLIST: _LOGGER.warning( "Unhandled sensor %s detected. Please report at " - 'https://github.com/home-assistant/home-assistant/issues?q=is%%3Aissue+label%%3A"integration%%3A+edl21"+', + 'https://github.com/home-assistant/core/issues?q=is%%3Aissue+label%%3A"integration%%3A+edl21"+', obis, ) self._OBIS_BLACKLIST.add(obis) diff --git a/homeassistant/components/sun/__init__.py b/homeassistant/components/sun/__init__.py index 5fb777bd325..2d921da4a46 100644 --- a/homeassistant/components/sun/__init__.py +++ b/homeassistant/components/sun/__init__.py @@ -41,7 +41,7 @@ STATE_ATTR_NEXT_SETTING = "next_setting" # The algorithm used here is somewhat complicated. It aims to cut down # the number of sensor updates over the day. It's documented best in # the PR for the change, see the Discussion section of: -# https://github.com/home-assistant/home-assistant/pull/23832 +# https://github.com/home-assistant/core/pull/23832 # As documented in wikipedia: https://en.wikipedia.org/wiki/Twilight diff --git a/homeassistant/components/vizio/media_player.py b/homeassistant/components/vizio/media_player.py index ac688241682..61c9ca54854 100644 --- a/homeassistant/components/vizio/media_player.py +++ b/homeassistant/components/vizio/media_player.py @@ -289,7 +289,7 @@ class VizioDevice(MediaPlayerEntity): ) -> None: """Send update event when Vizio config entry is updated.""" # Move this method to component level if another entity ever gets added for a single config entry. - # See here: https://github.com/home-assistant/home-assistant/pull/30653#discussion_r366426121 + # See here: https://github.com/home-assistant/core/pull/30653#discussion_r366426121 async_dispatcher_send(hass, config_entry.entry_id, config_entry) async def _async_update_options(self, config_entry: ConfigEntry) -> None: diff --git a/homeassistant/components/xiaomi_aqara/binary_sensor.py b/homeassistant/components/xiaomi_aqara/binary_sensor.py index d63be7824ed..8fbecee46e9 100644 --- a/homeassistant/components/xiaomi_aqara/binary_sensor.py +++ b/homeassistant/components/xiaomi_aqara/binary_sensor.py @@ -254,7 +254,7 @@ class XiaomiMotionSensor(XiaomiBinarySensor): _LOGGER.debug( "Skipping heartbeat of the motion sensor. " "It can introduce an incorrect state because of a firmware " - "bug (https://github.com/home-assistant/home-assistant/pull/" + "bug (https://github.com/home-assistant/core/pull/" "11631#issuecomment-357507744)" ) return diff --git a/homeassistant/helpers/config_validation.py b/homeassistant/helpers/config_validation.py index 282e63e6440..fb4805a8644 100644 --- a/homeassistant/helpers/config_validation.py +++ b/homeassistant/helpers/config_validation.py @@ -702,7 +702,7 @@ def deprecated( else: # If Python is unable to access the sources files, the call stack frame # will be missing information, so let's guard. - # https://github.com/home-assistant/home-assistant/issues/24982 + # https://github.com/home-assistant/core/issues/24982 module_name = __name__ if replacement_key and invalidation_version: diff --git a/homeassistant/helpers/deprecation.py b/homeassistant/helpers/deprecation.py index 2a4fafde75b..a62a2e63804 100644 --- a/homeassistant/helpers/deprecation.py +++ b/homeassistant/helpers/deprecation.py @@ -60,7 +60,7 @@ def get_deprecated( else: # If Python is unable to access the sources files, the call stack frame # will be missing information, so let's guard. - # https://github.com/home-assistant/home-assistant/issues/24982 + # https://github.com/home-assistant/core/issues/24982 module_name = __name__ logger = logging.getLogger(module_name) diff --git a/homeassistant/helpers/entity.py b/homeassistant/helpers/entity.py index 5b3366d7554..7d0cd4292f8 100644 --- a/homeassistant/helpers/entity.py +++ b/homeassistant/helpers/entity.py @@ -362,7 +362,7 @@ class Entity(ABC): else: extra = ( "Please create a bug report at " - "https://github.com/home-assistant/home-assistant/issues?q=is%3Aopen+is%3Aissue" + "https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue" ) if self.platform: extra += ( diff --git a/homeassistant/util/logging.py b/homeassistant/util/logging.py index 629928f43d7..db40412cbf2 100644 --- a/homeassistant/util/logging.py +++ b/homeassistant/util/logging.py @@ -98,7 +98,7 @@ def log_exception(format_err: Callable[..., Any], *args: Any) -> None: else: # If Python is unable to access the sources files, the call stack frame # will be missing information, so let's guard. - # https://github.com/home-assistant/home-assistant/issues/24982 + # https://github.com/home-assistant/core/issues/24982 module_name = __name__ # Do not print the wrapper in the traceback diff --git a/tests/auth/providers/test_homeassistant.py b/tests/auth/providers/test_homeassistant.py index f9ac8fbb92a..c804b237e8b 100644 --- a/tests/auth/providers/test_homeassistant.py +++ b/tests/auth/providers/test_homeassistant.py @@ -277,7 +277,7 @@ async def test_legacy_get_or_create_credentials(hass, legacy_data): async def test_race_condition_in_data_loading(hass): """Test race condition in the hass_auth.Data loading. - Ref issue: https://github.com/home-assistant/home-assistant/issues/21569 + Ref issue: https://github.com/home-assistant/core/issues/21569 """ counter = 0 diff --git a/tests/components/homekit_controller/specific_devices/test_aqara_gateway.py b/tests/components/homekit_controller/specific_devices/test_aqara_gateway.py index 292c4169688..8bee6e0591d 100644 --- a/tests/components/homekit_controller/specific_devices/test_aqara_gateway.py +++ b/tests/components/homekit_controller/specific_devices/test_aqara_gateway.py @@ -1,7 +1,7 @@ """ Regression tests for Aqara Gateway V3. -https://github.com/home-assistant/home-assistant/issues/20957 +https://github.com/home-assistant/core/issues/20957 """ from homeassistant.components.light import SUPPORT_BRIGHTNESS, SUPPORT_COLOR diff --git a/tests/components/homekit_controller/specific_devices/test_ecobee3.py b/tests/components/homekit_controller/specific_devices/test_ecobee3.py index ee048f93ca7..c1a956f3f4d 100644 --- a/tests/components/homekit_controller/specific_devices/test_ecobee3.py +++ b/tests/components/homekit_controller/specific_devices/test_ecobee3.py @@ -1,7 +1,7 @@ """ Regression tests for Ecobee 3. -https://github.com/home-assistant/home-assistant/issues/15336 +https://github.com/home-assistant/core/issues/15336 """ from unittest import mock diff --git a/tests/components/homekit_controller/specific_devices/test_ecobee_occupancy.py b/tests/components/homekit_controller/specific_devices/test_ecobee_occupancy.py index b1a8c0a636f..6823cdc16ea 100644 --- a/tests/components/homekit_controller/specific_devices/test_ecobee_occupancy.py +++ b/tests/components/homekit_controller/specific_devices/test_ecobee_occupancy.py @@ -1,7 +1,7 @@ """ Regression tests for Ecobee occupancy. -https://github.com/home-assistant/home-assistant/issues/31827 +https://github.com/home-assistant/core/issues/31827 """ from tests.components.homekit_controller.common import ( diff --git a/tests/components/homekit_controller/specific_devices/test_koogeek_ls1.py b/tests/components/homekit_controller/specific_devices/test_koogeek_ls1.py index 2abd12b3df4..4682d4b2bcc 100644 --- a/tests/components/homekit_controller/specific_devices/test_koogeek_ls1.py +++ b/tests/components/homekit_controller/specific_devices/test_koogeek_ls1.py @@ -59,7 +59,7 @@ async def test_recover_from_failure(hass, utcnow, failure_cls): """ Test that entity actually recovers from a network connection drop. - See https://github.com/home-assistant/home-assistant/issues/18949 + See https://github.com/home-assistant/core/issues/18949 """ accessories = await setup_accessories_from_file(hass, "koogeek_ls1.json") config_entry, pairing = await setup_test_accessories(hass, accessories) diff --git a/tests/components/homekit_controller/specific_devices/test_lennox_e30.py b/tests/components/homekit_controller/specific_devices/test_lennox_e30.py index 3209139ae1e..fe7b0c7783f 100644 --- a/tests/components/homekit_controller/specific_devices/test_lennox_e30.py +++ b/tests/components/homekit_controller/specific_devices/test_lennox_e30.py @@ -1,7 +1,7 @@ """ Regression tests for Aqara Gateway V3. -https://github.com/home-assistant/home-assistant/issues/20885 +https://github.com/home-assistant/core/issues/20885 """ from homeassistant.components.climate.const import SUPPORT_TARGET_TEMPERATURE diff --git a/tests/components/homekit_controller/specific_devices/test_simpleconnect_fan.py b/tests/components/homekit_controller/specific_devices/test_simpleconnect_fan.py index a83a31166f4..b30dd1e9c89 100644 --- a/tests/components/homekit_controller/specific_devices/test_simpleconnect_fan.py +++ b/tests/components/homekit_controller/specific_devices/test_simpleconnect_fan.py @@ -1,7 +1,7 @@ """ Test against characteristics captured from a SIMPLEconnect Fan. -https://github.com/home-assistant/home-assistant/issues/26180 +https://github.com/home-assistant/core/issues/26180 """ from homeassistant.components.fan import SUPPORT_DIRECTION, SUPPORT_SET_SPEED diff --git a/tests/helpers/test_entity.py b/tests/helpers/test_entity.py index 1513d573b56..936a45fd403 100644 --- a/tests/helpers/test_entity.py +++ b/tests/helpers/test_entity.py @@ -671,7 +671,7 @@ async def test_warn_slow_write_state(hass, caplog): "Updating state for comp_test.test_entity " "() " "took 10.000 seconds. Please create a bug report at " - "https://github.com/home-assistant/home-assistant/issues?" + "https://github.com/home-assistant/core/issues?" "q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+hue%22" ) in caplog.text