Skip to content

Using state_translated Function in Pyscript #709

Answered by ALERTua
3735943886 asked this question in Q&A
Discussion options

You must be logged in to vote
from homeassistant.helpers.template import StateTranslated
translated_state = StateTranslated(hass)('sensor.my_sensor_entity_id')

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by 3735943886
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants