Add translation example
This commit is contained in:
5
custom_components/blueprint/.translations/sensor.nb.json
Normal file
5
custom_components/blueprint/.translations/sensor.nb.json
Normal file
@ -0,0 +1,5 @@
|
||||
{
|
||||
"state": {
|
||||
"Some sample static text.": "Eksempel tekst."
|
||||
}
|
||||
}
|
@ -29,7 +29,7 @@ class BlueprintSensor(Entity):
|
||||
|
||||
# Check the data and update the value.
|
||||
if updated.get("static") is None:
|
||||
self._state = self._status
|
||||
self._state = self._state
|
||||
else:
|
||||
self._state = updated.get("static")
|
||||
|
||||
|
Reference in New Issue
Block a user