Change 'Sky Connect' to 'SkyConnect' (#86166)

This commit is contained in:
Erik Montnemery 2023-01-18 14:43:38 +01:00 committed by GitHub
parent 141acba40d
commit fea5330cee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
14 changed files with 41 additions and 41 deletions

View File

@ -1,4 +1,4 @@
"""The Home Assistant Sky Connect integration."""
"""The Home Assistant SkyConnect integration."""
from __future__ import annotations
import logging
@ -72,7 +72,7 @@ async def _multi_pan_addon_info(
async def _async_usb_scan_done(hass: HomeAssistant, entry: ConfigEntry) -> None:
"""Finish Home Assistant Sky Connect config entry setup."""
"""Finish Home Assistant SkyConnect config entry setup."""
matcher = usb.USBCallbackMatcher(
domain=DOMAIN,
vid=entry.data["vid"].upper(),
@ -99,7 +99,7 @@ async def _async_usb_scan_done(hass: HomeAssistant, entry: ConfigEntry) -> None:
return
hw_discovery_data = {
"name": "Sky Connect Multi-PAN",
"name": "SkyConnect Multi-PAN",
"port": {
"path": get_zigbee_socket(hass, addon_info),
},
@ -113,7 +113,7 @@ async def _async_usb_scan_done(hass: HomeAssistant, entry: ConfigEntry) -> None:
async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
"""Set up a Home Assistant Sky Connect config entry."""
"""Set up a Home Assistant SkyConnect config entry."""
await _wait_multi_pan_addon(hass, entry)

View File

@ -1,4 +1,4 @@
"""Config flow for the Home Assistant Sky Connect integration."""
"""Config flow for the Home Assistant SkyConnect integration."""
from __future__ import annotations
from typing import Any
@ -14,7 +14,7 @@ from .util import get_usb_service_info
class HomeAssistantSkyConnectConfigFlow(ConfigFlow, domain=DOMAIN):
"""Handle a config flow for Home Assistant Sky Connect."""
"""Handle a config flow for Home Assistant SkyConnect."""
VERSION = 1
@ -38,7 +38,7 @@ class HomeAssistantSkyConnectConfigFlow(ConfigFlow, domain=DOMAIN):
if await self.async_set_unique_id(unique_id):
self._abort_if_unique_id_configured(updates={"device": device})
return self.async_create_entry(
title="Home Assistant Sky Connect",
title="Home Assistant SkyConnect",
data={
"device": device,
"vid": vid,
@ -51,7 +51,7 @@ class HomeAssistantSkyConnectConfigFlow(ConfigFlow, domain=DOMAIN):
class HomeAssistantSkyConnectOptionsFlow(silabs_multiprotocol_addon.OptionsFlowHandler):
"""Handle an option flow for Home Assistant Sky Connect."""
"""Handle an option flow for Home Assistant SkyConnect."""
async def _async_serial_port_settings(
self,
@ -75,8 +75,8 @@ class HomeAssistantSkyConnectOptionsFlow(silabs_multiprotocol_addon.OptionsFlowH
def _zha_name(self) -> str:
"""Return the ZHA name."""
return "Sky Connect Multi-PAN"
return "SkyConnect Multi-PAN"
def _hardware_name(self) -> str:
"""Return the name of the hardware."""
return "Home Assistant Sky Connect"
return "Home Assistant SkyConnect"

View File

@ -1,3 +1,3 @@
"""Constants for the Home Assistant Sky Connect integration."""
"""Constants for the Home Assistant SkyConnect integration."""
DOMAIN = "homeassistant_sky_connect"

View File

@ -1,4 +1,4 @@
"""The Home Assistant Sky Connect hardware platform."""
"""The Home Assistant SkyConnect hardware platform."""
from __future__ import annotations
from homeassistant.components.hardware.models import HardwareInfo, USBInfo
@ -6,7 +6,7 @@ from homeassistant.core import HomeAssistant, callback
from .const import DOMAIN
DONGLE_NAME = "Home Assistant Sky Connect"
DONGLE_NAME = "Home Assistant SkyConnect"
@callback

View File

@ -1,6 +1,6 @@
{
"domain": "homeassistant_sky_connect",
"name": "Home Assistant Sky Connect",
"name": "Home Assistant SkyConnect",
"config_flow": true,
"documentation": "https://www.home-assistant.io/integrations/homeassistant_sky_connect",
"dependencies": ["hardware", "usb", "homeassistant_hardware"],

View File

@ -1,4 +1,4 @@
"""Utility functions for Home Assistant Sky Connect integration."""
"""Utility functions for Home Assistant SkyConnect integration."""
from __future__ import annotations
from homeassistant.components import usb

View File

@ -14,7 +14,7 @@ from .const import DOMAIN
class OTBRConfigFlow(ConfigFlow, domain=DOMAIN):
"""Handle a config flow for Home Assistant Sky Connect."""
"""Handle a config flow for Home Assistant SkyConnect."""
VERSION = 1

View File

@ -273,7 +273,7 @@ class ZhaMultiPANMigrationHelper:
"""Helper class for automatic migration when upgrading the firmware of a radio.
This class is currently only intended to be used when changing the firmware on the
radio used in the Home Assistant Sky Connect USB stick and the Home Assistant Yellow
radio used in the Home Assistant SkyConnect USB stick and the Home Assistant Yellow
from Zigbee only firmware to firmware supporting both Zigbee and Thread.
"""

View File

@ -1 +1 @@
"""Tests for the Home Assistant Sky Connect integration."""
"""Tests for the Home Assistant SkyConnect integration."""

View File

@ -1,4 +1,4 @@
"""Test fixtures for the Home Assistant Sky Connect integration."""
"""Test fixtures for the Home Assistant SkyConnect integration."""
from collections.abc import Generator
from unittest.mock import MagicMock, patch

View File

@ -1,4 +1,4 @@
"""Test the Home Assistant Sky Connect config flow."""
"""Test the Home Assistant SkyConnect config flow."""
import copy
from unittest.mock import Mock, patch
@ -46,7 +46,7 @@ async def test_config_flow(hass: HomeAssistant) -> None:
}
assert result["type"] == FlowResultType.CREATE_ENTRY
assert result["title"] == "Home Assistant Sky Connect"
assert result["title"] == "Home Assistant SkyConnect"
assert result["data"] == expected_data
assert result["options"] == {}
assert len(mock_setup_entry.mock_calls) == 1
@ -54,7 +54,7 @@ async def test_config_flow(hass: HomeAssistant) -> None:
config_entry = hass.config_entries.async_entries(DOMAIN)[0]
assert config_entry.data == expected_data
assert config_entry.options == {}
assert config_entry.title == "Home Assistant Sky Connect"
assert config_entry.title == "Home Assistant SkyConnect"
assert (
config_entry.unique_id
== f"{USB_DATA.vid}:{USB_DATA.pid}_{USB_DATA.serial_number}_{USB_DATA.manufacturer}_{USB_DATA.description}"
@ -68,7 +68,7 @@ async def test_config_flow_unique_id(hass: HomeAssistant) -> None:
data={},
domain=DOMAIN,
options={},
title="Home Assistant Sky Connect",
title="Home Assistant SkyConnect",
unique_id=f"{USB_DATA.vid}:{USB_DATA.pid}_{USB_DATA.serial_number}_{USB_DATA.manufacturer}_{USB_DATA.description}",
)
config_entry.add_to_hass(hass)
@ -93,7 +93,7 @@ async def test_config_flow_multiple_entries(hass: HomeAssistant) -> None:
data={},
domain=DOMAIN,
options={},
title="Home Assistant Sky Connect",
title="Home Assistant SkyConnect",
unique_id=f"{USB_DATA.vid}:{USB_DATA.pid}_{USB_DATA.serial_number}_{USB_DATA.manufacturer}_{USB_DATA.description}",
)
config_entry.add_to_hass(hass)
@ -119,7 +119,7 @@ async def test_config_flow_update_device(hass: HomeAssistant) -> None:
data={},
domain=DOMAIN,
options={},
title="Home Assistant Sky Connect",
title="Home Assistant SkyConnect",
unique_id=f"{USB_DATA.vid}:{USB_DATA.pid}_{USB_DATA.serial_number}_{USB_DATA.manufacturer}_{USB_DATA.description}",
)
config_entry.add_to_hass(hass)
@ -176,7 +176,7 @@ async def test_option_flow_install_multi_pan_addon(
},
domain=DOMAIN,
options={},
title="Home Assistant Sky Connect",
title="Home Assistant SkyConnect",
unique_id=f"{USB_DATA.vid}:{USB_DATA.pid}_{USB_DATA.serial_number}_{USB_DATA.manufacturer}_{USB_DATA.description}",
)
config_entry.add_to_hass(hass)
@ -271,7 +271,7 @@ async def test_option_flow_install_multi_pan_addon_zha(
},
domain=DOMAIN,
options={},
title="Home Assistant Sky Connect",
title="Home Assistant SkyConnect",
unique_id=f"{USB_DATA.vid}:{USB_DATA.pid}_{USB_DATA.serial_number}_{USB_DATA.manufacturer}_{USB_DATA.description}",
)
config_entry.add_to_hass(hass)

View File

@ -1,4 +1,4 @@
"""Test the Home Assistant Sky Connect hardware platform."""
"""Test the Home Assistant SkyConnect hardware platform."""
from unittest.mock import patch
from homeassistant.components.homeassistant_sky_connect.const import DOMAIN
@ -38,7 +38,7 @@ async def test_hardware_info(
data=CONFIG_ENTRY_DATA,
domain=DOMAIN,
options={},
title="Home Assistant Sky Connect",
title="Home Assistant SkyConnect",
unique_id="unique_1",
)
config_entry.add_to_hass(hass)
@ -46,7 +46,7 @@ async def test_hardware_info(
data=CONFIG_ENTRY_DATA_2,
domain=DOMAIN,
options={},
title="Home Assistant Sky Connect",
title="Home Assistant SkyConnect",
unique_id="unique_2",
)
config_entry_2.add_to_hass(hass)
@ -76,7 +76,7 @@ async def test_hardware_info(
"manufacturer": "bla_manufacturer",
"description": "bla_description",
},
"name": "Home Assistant Sky Connect",
"name": "Home Assistant SkyConnect",
"url": None,
},
{
@ -89,7 +89,7 @@ async def test_hardware_info(
"manufacturer": "bla_manufacturer_2",
"description": "bla_description_2",
},
"name": "Home Assistant Sky Connect",
"name": "Home Assistant SkyConnect",
"url": None,
},
]

View File

@ -1,4 +1,4 @@
"""Test the Home Assistant Sky Connect integration."""
"""Test the Home Assistant SkyConnect integration."""
from collections.abc import Generator
from typing import Any
from unittest.mock import MagicMock, Mock, patch
@ -64,7 +64,7 @@ async def test_setup_entry(
data=CONFIG_ENTRY_DATA,
domain=DOMAIN,
options={},
title="Home Assistant Sky Connect",
title="Home Assistant SkyConnect",
)
config_entry.add_to_hass(hass)
with patch(
@ -112,7 +112,7 @@ async def test_setup_zha(
data=CONFIG_ENTRY_DATA,
domain=DOMAIN,
options={},
title="Home Assistant Sky Connect",
title="Home Assistant SkyConnect",
)
config_entry.add_to_hass(hass)
with patch(
@ -163,7 +163,7 @@ async def test_setup_zha_multipan(
data=CONFIG_ENTRY_DATA,
domain=DOMAIN,
options={},
title="Home Assistant Sky Connect",
title="Home Assistant SkyConnect",
)
config_entry.add_to_hass(hass)
with patch(
@ -200,7 +200,7 @@ async def test_setup_zha_multipan(
"radio_type": "ezsp",
}
assert config_entry.options == {}
assert config_entry.title == "Sky Connect Multi-PAN"
assert config_entry.title == "SkyConnect Multi-PAN"
async def test_setup_zha_multipan_other_device(
@ -264,7 +264,7 @@ async def test_setup_entry_wait_usb(hass: HomeAssistant) -> None:
data=CONFIG_ENTRY_DATA,
domain=DOMAIN,
options={},
title="Home Assistant Sky Connect",
title="Home Assistant SkyConnect",
)
config_entry.add_to_hass(hass)
with patch(
@ -295,7 +295,7 @@ async def test_setup_entry_addon_info_fails(
data=CONFIG_ENTRY_DATA,
domain=DOMAIN,
options={},
title="Home Assistant Sky Connect",
title="Home Assistant SkyConnect",
)
config_entry.add_to_hass(hass)
with patch(
@ -324,7 +324,7 @@ async def test_setup_entry_addon_not_running(
data=CONFIG_ENTRY_DATA,
domain=DOMAIN,
options={},
title="Home Assistant Sky Connect",
title="Home Assistant SkyConnect",
)
config_entry.add_to_hass(hass)
with patch(

View File

@ -1,4 +1,4 @@
"""Test fixtures for the Home Assistant Sky Connect integration."""
"""Test fixtures for the Home Assistant SkyConnect integration."""
import pytest