mirror of
https://github.com/home-assistant/core.git
synced 2025-08-15 10:31:39 +02:00
Break long lines in discovery_info (#61431)
This commit is contained in:
@@ -75,7 +75,8 @@ class DhcpServiceInfo(BaseServiceInfo):
|
|||||||
Deprecated, and will be removed in version 2022.6.
|
Deprecated, and will be removed in version 2022.6.
|
||||||
"""
|
"""
|
||||||
report(
|
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},
|
exclude_integrations={DOMAIN},
|
||||||
error_if_core=False,
|
error_if_core=False,
|
||||||
)
|
)
|
||||||
@@ -88,7 +89,8 @@ class DhcpServiceInfo(BaseServiceInfo):
|
|||||||
Deprecated, and will be removed in version 2022.6.
|
Deprecated, and will be removed in version 2022.6.
|
||||||
"""
|
"""
|
||||||
report(
|
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},
|
exclude_integrations={DOMAIN},
|
||||||
error_if_core=False,
|
error_if_core=False,
|
||||||
)
|
)
|
||||||
|
@@ -268,7 +268,8 @@ class MqttServiceInfo(BaseServiceInfo):
|
|||||||
Deprecated, and will be removed in version 2022.6.
|
Deprecated, and will be removed in version 2022.6.
|
||||||
"""
|
"""
|
||||||
report(
|
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},
|
exclude_integrations={DOMAIN},
|
||||||
error_if_core=False,
|
error_if_core=False,
|
||||||
)
|
)
|
||||||
|
@@ -110,7 +110,10 @@ class SsdpServiceInfo(
|
|||||||
Deprecated, and will be removed in version 2022.6.
|
Deprecated, and will be removed in version 2022.6.
|
||||||
"""
|
"""
|
||||||
report(
|
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},
|
exclude_integrations={DOMAIN},
|
||||||
error_if_core=False,
|
error_if_core=False,
|
||||||
)
|
)
|
||||||
@@ -128,7 +131,10 @@ class SsdpServiceInfo(
|
|||||||
Deprecated, and will be removed in version 2022.6.
|
Deprecated, and will be removed in version 2022.6.
|
||||||
"""
|
"""
|
||||||
report(
|
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},
|
exclude_integrations={DOMAIN},
|
||||||
error_if_core=False,
|
error_if_core=False,
|
||||||
)
|
)
|
||||||
@@ -143,8 +149,10 @@ class SsdpServiceInfo(
|
|||||||
Deprecated, and will be removed in version 2022.6.
|
Deprecated, and will be removed in version 2022.6.
|
||||||
"""
|
"""
|
||||||
report(
|
report(
|
||||||
f"accessed discovery_info.__contains__('{name}') instead of discovery_info.upnp.__contains__('{name}') "
|
f"accessed discovery_info.__contains__('{name}') "
|
||||||
f"or discovery_info.ssdp_headers.__contains__('{name}'); this will fail in version 2022.6",
|
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},
|
exclude_integrations={DOMAIN},
|
||||||
error_if_core=False,
|
error_if_core=False,
|
||||||
)
|
)
|
||||||
|
@@ -51,7 +51,8 @@ class UsbServiceInfo(BaseServiceInfo):
|
|||||||
Deprecated, and will be removed in version 2022.6.
|
Deprecated, and will be removed in version 2022.6.
|
||||||
"""
|
"""
|
||||||
report(
|
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},
|
exclude_integrations={DOMAIN},
|
||||||
error_if_core=False,
|
error_if_core=False,
|
||||||
)
|
)
|
||||||
|
@@ -114,7 +114,8 @@ class ZeroconfServiceInfo(BaseServiceInfo):
|
|||||||
Deprecated, and will be removed in version 2022.6.
|
Deprecated, and will be removed in version 2022.6.
|
||||||
"""
|
"""
|
||||||
report(
|
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},
|
exclude_integrations={DOMAIN},
|
||||||
error_if_core=False,
|
error_if_core=False,
|
||||||
)
|
)
|
||||||
@@ -127,7 +128,8 @@ class ZeroconfServiceInfo(BaseServiceInfo):
|
|||||||
Deprecated, and will be removed in version 2022.6.
|
Deprecated, and will be removed in version 2022.6.
|
||||||
"""
|
"""
|
||||||
report(
|
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},
|
exclude_integrations={DOMAIN},
|
||||||
error_if_core=False,
|
error_if_core=False,
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user