Update core.md

This commit is contained in:
karwosts 2025-07-04 11:30:27 -07:00 committed by GitHub
parent 98d1ec19f5
commit bbf4422ac9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -151,6 +151,21 @@ The translation for selectors are defined under the `selector` key. It supports
``` ```
The `unit_of_measurement` of a number selector may also be translated with a translation key:
```
// Translations for number selector to be used in option and config flows
"selector": {
// The key is linked to the `translation_key` that needs to be set
// using the NumberSelectorConfig class
"round_digits": {
// The translations for the number selector unit_of_measurement
"unit_of_measurement": {
"decimals": "decimals"
}
}
}
```
### Service Actions ### Service Actions
The translations of service actions strings are defined under the `services` key. The translations of service actions strings are defined under the `services` key.