Răsfoiți Sursa

feat!(translations): additional naming variants for timer switch

From PR #5174

Migrations provided
Jason Rumney 1 lună în urmă
părinte
comite
ed265df03f

+ 2 - 0
custom_components/tuya_local/__init__.py

@@ -950,6 +950,8 @@ async def async_migrate_entry(hass, entry: ConfigEntry):
             # Standardistion of entity naming to use translation_key
             replacements = {
                 "select_nightvision": "select_night_vision",
+                "switch_timer_set": "switch_timer",
+                "switch_timer_start": "switch_timer",
             }
             return replace_unique_ids(entity_entry, device_id, conf_file, replacements)
 

+ 1 - 2
custom_components/tuya_local/devices/inkbird_c236t_thermostat.yaml

@@ -209,8 +209,7 @@ entities:
           - value: false
 
   - entity: switch
-    name: Timer start
-    icon: "mdi:timer-play"
+    translation_key: timer
     dps:
       - id: 119
         type: boolean

+ 1 - 2
custom_components/tuya_local/devices/klarstein_amazonia_dishwasher.yaml

@@ -117,8 +117,7 @@ entities:
         unit: C
         class: measurement
   - entity: switch
-    name: Timer set
-    icon: "mdi:clock-check"
+    translation_key: timer
     category: config
     dps:
       - id: 102