Fix typos in home_plus_controls (#99188)

This commit is contained in:
Robert Resch 2023-08-28 10:15:14 +02:00 committed by GitHub
parent 1683ffb830
commit bb545b1c4d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 9 deletions

View file

@ -54,7 +54,7 @@ PLATFORMS = [Platform.SWITCH]
_LOGGER = logging.getLogger(__name__) _LOGGER = logging.getLogger(__name__)
_ISSUE_MOTE_TO_NETAMO = "move_to_netamo" _ISSUE_MOVE_TO_NETATMO = "move_to_netatmo"
async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool: async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
@ -67,12 +67,12 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
async_create_issue( async_create_issue(
hass, hass,
DOMAIN, DOMAIN,
_ISSUE_MOTE_TO_NETAMO, _ISSUE_MOVE_TO_NETATMO,
is_fixable=False, is_fixable=False,
is_persistent=False, is_persistent=False,
breaks_in_ha_version="2023.12.0", # Netamo decided to shutdown the api in december breaks_in_ha_version="2023.12.0", # Netatmo decided to shutdown the api in december
severity=IssueSeverity.WARNING, severity=IssueSeverity.WARNING,
translation_key=_ISSUE_MOTE_TO_NETAMO, translation_key=_ISSUE_MOVE_TO_NETATMO,
translation_placeholders={ translation_placeholders={
"url": "https://www.home-assistant.io/integrations/netatmo/" "url": "https://www.home-assistant.io/integrations/netatmo/"
}, },
@ -94,12 +94,12 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
async_create_issue( async_create_issue(
hass, hass,
DOMAIN, DOMAIN,
_ISSUE_MOTE_TO_NETAMO, _ISSUE_MOVE_TO_NETATMO,
is_fixable=False, is_fixable=False,
is_persistent=False, is_persistent=False,
breaks_in_ha_version="2023.12.0", # Netamo decided to shutdown the api in december breaks_in_ha_version="2023.12.0", # Netatmo decided to shutdown the api in december
severity=IssueSeverity.WARNING, severity=IssueSeverity.WARNING,
translation_key=_ISSUE_MOTE_TO_NETAMO, translation_key=_ISSUE_MOVE_TO_NETATMO,
translation_placeholders={ translation_placeholders={
"url": "https://www.home-assistant.io/integrations/netatmo/" "url": "https://www.home-assistant.io/integrations/netatmo/"
}, },
@ -203,6 +203,6 @@ async def async_unload_entry(hass: HomeAssistant, config_entry: ConfigEntry) ->
# And finally unload the domain config entry data # And finally unload the domain config entry data
hass.data[DOMAIN].pop(config_entry.entry_id) hass.data[DOMAIN].pop(config_entry.entry_id)
async_delete_issue(hass, DOMAIN, _ISSUE_MOTE_TO_NETAMO) async_delete_issue(hass, DOMAIN, _ISSUE_MOVE_TO_NETATMO)
return unload_ok return unload_ok

View file

@ -18,7 +18,7 @@
} }
}, },
"issues": { "issues": {
"move_to_netamo": { "move_to_netatmo": {
"title": "Legrand Home+ Control deprecation", "title": "Legrand Home+ Control deprecation",
"description": "Home Assistant has been informed that the platform the Legrand Home+ Control integration is using, will be shutting down upcoming December.\n\nOnce that happens, it means this integration is no longer functional. We advise you to remove this integration and switch to the [Netatmo]({url}) integration, which provides a replacement for controlling your Legrand Home+ Control devices." "description": "Home Assistant has been informed that the platform the Legrand Home+ Control integration is using, will be shutting down upcoming December.\n\nOnce that happens, it means this integration is no longer functional. We advise you to remove this integration and switch to the [Netatmo]({url}) integration, which provides a replacement for controlling your Legrand Home+ Control devices."
} }