Using state_translated Function in Pyscript #709
Answered
by
ALERTua
3735943886
asked this question in
Q&A
Replies: 1 comment
-
from homeassistant.helpers.template import StateTranslated
translated_state = StateTranslated(hass)('sensor.my_sensor_entity_id') |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
3735943886
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to retrieve the value of the state_translated function in Home Assistant.
I referred to issue #588 and attempted to call
hass.state_translated()
, but unfortunately, it did not work as expected.Could anyone kindly guide me on how to use the
state_translated
function properly within Pyscript?Any advice or examples would be greatly appreciated.
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions