Skip to content

Commit

Permalink
DunWore thermostat: fix temperature scale and naming issues
Browse files Browse the repository at this point in the history
Scale should be directly within the condition, as nested mappings do not
support default mappings.

No name was defined for the thermostat translation key, so HA displays
"None".

Issue #2730
  • Loading branch information
make-all committed Jan 22, 2025
1 parent c9cc944 commit 3dcf768
Show file tree
Hide file tree
Showing 20 changed files with 21 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,8 @@ entities:
range:
min: 50
max: 600
mapping:
- scale: 10
step: 5
scale: 10
step: 5
- id: 23
type: string
name: unit
Expand Down
1 change: 1 addition & 0 deletions custom_components/tuya_local/translations/bg.json
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@
}
},
"thermostat": {
"name": "Термостат",
"state_attributes": {
"fan_mode": {
"state": {
Expand Down
1 change: 1 addition & 0 deletions custom_components/tuya_local/translations/cz.json
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@
}
},
"thermostat": {
"name": "Termostat",
"state_attributes": {
"fan_mode": {
"state": {
Expand Down
1 change: 1 addition & 0 deletions custom_components/tuya_local/translations/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@
}
},
"thermostat": {
"name": "Thermostat",
"state_attributes": {
"fan_mode": {
"state": {
Expand Down
1 change: 1 addition & 0 deletions custom_components/tuya_local/translations/el.json
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@
}
},
"thermostat": {
"name": "Θερμοστάτης",
"state_attributes": {
"fan_mode": {
"state": {
Expand Down
1 change: 1 addition & 0 deletions custom_components/tuya_local/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@
}
},
"thermostat": {
"name": "Thermostat",
"state_attributes": {
"fan_mode": {
"state": {
Expand Down
1 change: 1 addition & 0 deletions custom_components/tuya_local/translations/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@
}
},
"thermostat": {
"name": "Termostato",
"state_attributes": {
"fan_mode": {
"state": {
Expand Down
1 change: 1 addition & 0 deletions custom_components/tuya_local/translations/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@
}
},
"thermostat": {
"name": "Thermostat",
"state_attributes": {
"fan_mode": {
"state": {
Expand Down
1 change: 1 addition & 0 deletions custom_components/tuya_local/translations/hu.json
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@
}
},
"thermostat": {
"name": "Hőmérséklet szabályozó",
"state_attributes": {
"fan_mode": {
"state": {
Expand Down
1 change: 1 addition & 0 deletions custom_components/tuya_local/translations/id.json
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@
}
},
"thermostat": {
"name": "Termostat",
"state_attributes": {
"fan_mode": {
"state": {
Expand Down
1 change: 1 addition & 0 deletions custom_components/tuya_local/translations/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@
}
},
"thermostat": {
"name": "Termostato",
"state_attributes": {
"fan_mode": {
"state": {
Expand Down
1 change: 1 addition & 0 deletions custom_components/tuya_local/translations/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@
}
},
"thermostat": {
"name": "サーモスタット",
"state_attributes": {
"fan_mode": {
"state": {
Expand Down
1 change: 1 addition & 0 deletions custom_components/tuya_local/translations/no-NB.json
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@
}
},
"thermostat": {
"name": "Termostat",
"state_attributes": {
"fan_mode": {
"state": {
Expand Down
1 change: 1 addition & 0 deletions custom_components/tuya_local/translations/pl.json
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@
}
},
"thermostat": {
"name": "Termostat",
"state_attributes": {
"fan_mode": {
"state": {
Expand Down
1 change: 1 addition & 0 deletions custom_components/tuya_local/translations/pt-BR.json
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@
}
},
"thermostat": {
"name": "Termostato",
"state_attributes": {
"fan_mode": {
"state": {
Expand Down
1 change: 1 addition & 0 deletions custom_components/tuya_local/translations/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@
}
},
"thermostat": {
"name": "Термостат",
"state_attributes": {
"fan_mode": {
"state": {
Expand Down
1 change: 1 addition & 0 deletions custom_components/tuya_local/translations/uk.json
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@
}
},
"thermostat": {
"name": "Термостат",
"state_attributes": {
"fan_mode": {
"state": {
Expand Down
1 change: 1 addition & 0 deletions custom_components/tuya_local/translations/ur.json
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@
}
},
"thermostat": {
"name": "تھرموسٹیٹ",
"state_attributes": {
"fan_mode": {
"state": {
Expand Down
1 change: 1 addition & 0 deletions custom_components/tuya_local/translations/zh-Hans.json
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@
}
},
"thermostat": {
"name": "恒温器",
"state_attributes": {
"fan_mode": {
"state": {
Expand Down
1 change: 1 addition & 0 deletions custom_components/tuya_local/translations/zh-Hant.json
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@
}
},
"thermostat": {
"name": "恆溫器",
"state_attributes": {
"fan_mode": {
"state": {
Expand Down

0 comments on commit 3dcf768

Please sign in to comment.