feat(socket): update smart socket defaults (#12)
## Summary - change the default socket device name from Zigbee插座控制器 to 智能插座 - update new default scenes, in-memory defaults, and Local Experience simulation data to use the new gateway name - remove the duplicated Direct control section from the smart socket detail screen, keeping the main power control - remove the unused direct-control strings ## Data behavior - existing configured devices are not renamed - existing persisted scenes are not migrated - only newly created default content uses 智能插座 ## Verification - ./gradlew.bat :android:app:assembleDebug --no-daemon - installed on mulator-5554 - confirmed the Local Experience device card shows 智能插座 - confirmed the socket detail screen has no Direct control section or duplicate ON/OFF buttons Automated tests were not run. Reviewed-on: #12 Co-authored-by: KremeCN <3265494849@qq.com>
This commit was merged in pull request #12.
This commit is contained in:
+2
-2
@@ -29,9 +29,9 @@ class SimulationDeviceCatalog : DeviceCatalog {
|
||||
|
||||
private fun defaultDevices(profileId: ProviderProfileId): List<DeviceDescriptor> = listOf(
|
||||
DeviceDescriptor(
|
||||
id = DeviceId("${profileId.value}:Zigbee插座控制器"),
|
||||
id = DeviceId("${profileId.value}:智能插座"),
|
||||
profileId = profileId,
|
||||
name = DeviceName("Zigbee插座控制器"),
|
||||
name = DeviceName("智能插座"),
|
||||
type = DeviceType.SOCKET,
|
||||
),
|
||||
DeviceDescriptor(
|
||||
|
||||
Reference in New Issue
Block a user