Break long lines in discovery_info (#61431)

This commit is contained in:
epenet 2021-12-10 12:48:47 +01:00 committed by GitHub
parent 281b5e1c22
commit da7c5f4722
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 24 additions and 10 deletions

View File

@ -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,
)

View File

@ -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,
)

View File

@ -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,
)

View File

@ -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,
)

View File

@ -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,
)