Skip to content

Commit a257b5c

Browse files
balloobfrenck
andauthored
Rename DALI Center to Sunricher DALI (home-assistant#155865)
Co-authored-by: Franck Nijhof <[email protected]>
1 parent 5b9f737 commit a257b5c

File tree

21 files changed

+43
-51
lines changed

21 files changed

+43
-51
lines changed

CODEOWNERS

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

homeassistant/components/sunricher_dali_center/__init__.py renamed to homeassistant/components/sunricher_dali/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""The DALI Center integration."""
1+
"""The Sunricher DALI integration."""
22

33
from __future__ import annotations
44

@@ -28,7 +28,7 @@
2828

2929

3030
async def async_setup_entry(hass: HomeAssistant, entry: DaliCenterConfigEntry) -> bool:
31-
"""Set up DALI Center from a config entry."""
31+
"""Set up Sunricher DALI from a config entry."""
3232

3333
gateway = DaliGateway(
3434
entry.data[CONF_SERIAL_NUMBER],

homeassistant/components/sunricher_dali_center/config_flow.py renamed to homeassistant/components/sunricher_dali/config_flow.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Config flow for the DALI Center integration."""
1+
"""Config flow for the Sunricher DALI integration."""
22

33
from __future__ import annotations
44

@@ -30,7 +30,7 @@
3030

3131

3232
class DaliCenterConfigFlow(ConfigFlow, domain=DOMAIN):
33-
"""Handle a config flow for DALI Center."""
33+
"""Handle a config flow for Sunricher DALI."""
3434

3535
VERSION = 1
3636

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
"""Constants for the Sunricher DALI integration."""
2+
3+
DOMAIN = "sunricher_dali"
4+
MANUFACTURER = "Sunricher"
5+
CONF_SERIAL_NUMBER = "serial_number"

homeassistant/components/sunricher_dali_center/light.py renamed to homeassistant/components/sunricher_dali/light.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ async def async_setup_entry(
3838
entry: DaliCenterConfigEntry,
3939
async_add_entities: AddConfigEntryEntitiesCallback,
4040
) -> None:
41-
"""Set up DALI Center light entities from config entry."""
41+
"""Set up Sunricher DALI light entities from config entry."""
4242
runtime_data = entry.runtime_data
4343
gateway = runtime_data.gateway
4444
devices = runtime_data.devices
@@ -57,7 +57,7 @@ def _on_light_status(dev_id: str, status: LightStatus) -> None:
5757

5858

5959
class DaliCenterLight(LightEntity):
60-
"""Representation of a DALI Center Light."""
60+
"""Representation of a Sunricher DALI Light."""
6161

6262
_attr_has_entity_name = True
6363
_attr_name = None

homeassistant/components/sunricher_dali_center/manifest.json renamed to homeassistant/components/sunricher_dali/manifest.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
2-
"domain": "sunricher_dali_center",
3-
"name": "DALI Center",
2+
"domain": "sunricher_dali",
3+
"name": "Sunricher DALI",
44
"codeowners": ["@niracler"],
55
"config_flow": true,
6-
"documentation": "https://www.home-assistant.io/integrations/sunricher_dali_center",
6+
"documentation": "https://www.home-assistant.io/integrations/sunricher_dali",
77
"iot_class": "local_push",
88
"quality_scale": "bronze",
99
"requirements": ["PySrDaliGateway==0.13.1"]

homeassistant/components/sunricher_dali_center/strings.json renamed to homeassistant/components/sunricher_dali/strings.json

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
},
66
"error": {
77
"cannot_connect": "[%key:common::config_flow::error::cannot_connect%]",
8-
"discovery_failed": "Failed to discover DALI gateways on the network",
9-
"no_devices_found": "No DALI gateways found on the network",
8+
"discovery_failed": "Failed to discover Sunricher DALI gateways on the network",
9+
"no_devices_found": "No Sunricher DALI gateways found on the network",
1010
"unknown": "[%key:common::config_flow::error::unknown%]"
1111
},
1212
"step": {
@@ -17,12 +17,10 @@
1717
"data_description": {
1818
"selected_gateway": "Each option shows the gateway name, serial number, and IP address."
1919
},
20-
"description": "Select the gateway to configure.",
21-
"title": "Select DALI gateway"
20+
"description": "Select the gateway to configure."
2221
},
2322
"user": {
24-
"description": "**Three-step process:**\n\n1. Ensure the gateway is powered and on the same network.\n2. Select **Submit** to start discovery (searches for up to 3 minutes)\n3. While discovery is in progress, press the **Reset** button on your DALI gateway device **once**.\n\nThe gateway will respond immediately after the button press.",
25-
"title": "Set up DALI Center gateway"
23+
"description": "**Three-step process:**\n\n1. Ensure the gateway is powered and on the same network.\n2. Select **Submit** to start discovery (searches for up to 3 minutes)\n3. While discovery is in progress, press the **Reset** button on your Sunricher DALI gateway device **once**.\n\nThe gateway will respond immediately after the button press."
2624
}
2725
}
2826
}

homeassistant/components/sunricher_dali_center/types.py renamed to homeassistant/components/sunricher_dali/types.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Type definitions for the DALI Center integration."""
1+
"""Type definitions for the Sunricher DALI integration."""
22

33
from dataclasses import dataclass
44

@@ -9,7 +9,7 @@
99

1010
@dataclass
1111
class DaliCenterData:
12-
"""Runtime data for the DALI Center integration."""
12+
"""Runtime data for the Sunricher DALI integration."""
1313

1414
gateway: DaliGateway
1515
devices: list[Device]

homeassistant/components/sunricher_dali_center/const.py

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)