diff --git a/homeassistant/components/dhcp/__init__.py b/homeassistant/components/dhcp/__init__.py index aa3fb2118cb..28204943606 100644 --- a/homeassistant/components/dhcp/__init__.py +++ b/homeassistant/components/dhcp/__init__.py @@ -75,7 +75,8 @@ class DhcpServiceInfo(BaseServiceInfo): Deprecated, and will be removed in version 2022.6. """ report( - f"accessed discovery_info['{name}'] instead of discovery_info.{name}; this will fail in version 2022.6", + f"accessed discovery_info['{name}'] instead of discovery_info.{name}; " + "this will fail in version 2022.6", exclude_integrations={DOMAIN}, error_if_core=False, ) @@ -88,7 +89,8 @@ class DhcpServiceInfo(BaseServiceInfo): Deprecated, and will be removed in version 2022.6. """ report( - f"accessed discovery_info.get('{name}') instead of discovery_info.{name}; this will fail in version 2022.6", + f"accessed discovery_info.get('{name}') instead of discovery_info.{name}; " + "this will fail in version 2022.6", exclude_integrations={DOMAIN}, error_if_core=False, ) diff --git a/homeassistant/components/mqtt/__init__.py b/homeassistant/components/mqtt/__init__.py index ae7b60c4454..7e93c26a887 100644 --- a/homeassistant/components/mqtt/__init__.py +++ b/homeassistant/components/mqtt/__init__.py @@ -268,7 +268,8 @@ class MqttServiceInfo(BaseServiceInfo): Deprecated, and will be removed in version 2022.6. """ report( - f"accessed discovery_info['{name}'] instead of discovery_info.{name}; this will fail in version 2022.6", + f"accessed discovery_info['{name}'] instead of discovery_info.{name}; " + "this will fail in version 2022.6", exclude_integrations={DOMAIN}, error_if_core=False, ) diff --git a/homeassistant/components/ssdp/__init__.py b/homeassistant/components/ssdp/__init__.py index f7ccff153ac..ea4740be77a 100644 --- a/homeassistant/components/ssdp/__init__.py +++ b/homeassistant/components/ssdp/__init__.py @@ -110,7 +110,10 @@ class SsdpServiceInfo( Deprecated, and will be removed in version 2022.6. """ report( - f"accessed discovery_info['{name}'] instead of discovery_info.{name}; this will fail in version 2022.6", + f"accessed discovery_info['{name}'] instead of discovery_info.{name}, " + f"discovery_info.upnp['{name}'] " + f"or discovery_info.ssdp_headers['{name}']; " + "this will fail in version 2022.6", exclude_integrations={DOMAIN}, error_if_core=False, ) @@ -128,7 +131,10 @@ class SsdpServiceInfo( Deprecated, and will be removed in version 2022.6. """ report( - f"accessed discovery_info.get('{name}') instead of discovery_info.{name}; this will fail in version 2022.6", + f"accessed discovery_info.get('{name}') instead of discovery_info.{name}, " + f"discovery_info.upnp.get('{name}') " + f"or discovery_info.ssdp_headers.get('{name}'); " + "this will fail in version 2022.6", exclude_integrations={DOMAIN}, error_if_core=False, ) @@ -143,8 +149,10 @@ class SsdpServiceInfo( Deprecated, and will be removed in version 2022.6. """ report( - f"accessed discovery_info.__contains__('{name}') instead of discovery_info.upnp.__contains__('{name}') " - f"or discovery_info.ssdp_headers.__contains__('{name}'); this will fail in version 2022.6", + f"accessed discovery_info.__contains__('{name}') " + f"instead of discovery_info.upnp.__contains__('{name}') " + f"or discovery_info.ssdp_headers.__contains__('{name}'); " + "this will fail in version 2022.6", exclude_integrations={DOMAIN}, error_if_core=False, ) diff --git a/homeassistant/components/usb/__init__.py b/homeassistant/components/usb/__init__.py index ec3ffa0405a..38377aadd9f 100644 --- a/homeassistant/components/usb/__init__.py +++ b/homeassistant/components/usb/__init__.py @@ -51,7 +51,8 @@ class UsbServiceInfo(BaseServiceInfo): Deprecated, and will be removed in version 2022.6. """ report( - f"accessed discovery_info['{name}'] instead of discovery_info.{name}; this will fail in version 2022.6", + f"accessed discovery_info['{name}'] instead of discovery_info.{name}; " + "this will fail in version 2022.6", exclude_integrations={DOMAIN}, error_if_core=False, ) diff --git a/homeassistant/components/zeroconf/__init__.py b/homeassistant/components/zeroconf/__init__.py index 221a4d6b834..deeb42367cd 100644 --- a/homeassistant/components/zeroconf/__init__.py +++ b/homeassistant/components/zeroconf/__init__.py @@ -114,7 +114,8 @@ class ZeroconfServiceInfo(BaseServiceInfo): Deprecated, and will be removed in version 2022.6. """ report( - f"accessed discovery_info['{name}'] instead of discovery_info.{name}; this will fail in version 2022.6", + f"accessed discovery_info['{name}'] instead of discovery_info.{name}; " + "this will fail in version 2022.6", exclude_integrations={DOMAIN}, error_if_core=False, ) @@ -127,7 +128,8 @@ class ZeroconfServiceInfo(BaseServiceInfo): Deprecated, and will be removed in version 2022.6. """ report( - f"accessed discovery_info.get('{name}') instead of discovery_info.{name}; this will fail in version 2022.6", + f"accessed discovery_info.get('{name}') instead of discovery_info.{name}; " + "this will fail in version 2022.6", exclude_integrations={DOMAIN}, error_if_core=False, )