Translate number selector unit for utility_meter (#148276)

This commit is contained in:
karwosts 2025-07-06 09:36:38 -07:00 committed by GitHub
parent 4b5c04b2f0
commit 404d17efca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 0 deletions

View File

@ -94,6 +94,7 @@ CONFIG_SCHEMA = vol.Schema(
max=28,
mode=selector.NumberSelectorMode.BOX,
unit_of_measurement="days",
translation_key=CONF_METER_OFFSET,
),
),
vol.Required(CONF_TARIFFS, default=[]): selector.SelectSelector(

View File

@ -58,6 +58,11 @@
"quarterly": "Quarterly",
"yearly": "Yearly"
}
},
"offset": {
"unit_of_measurement": {
"days": "days"
}
}
},
"services": {