#@tpr - I have a similar situation ...
1 messages ยท Page 1 of 1 (latest)
Do you have a link to the issue at hand? And how did you solve it for your use case? ๐
Its an open PR for simpleFin integraiotn..
I gave up
lemme fined it
look at sensor.py
What i tried to do was use an extra_state_attribute to embed the "account type" and then use an icon translation
but at the time it didnt work
I bleive i opened a bug report
Ohh, I see. Hmm, looking at the code in that issue, it seems to be missing the domain that might be necessary?
I'm looking at the plugwise/icons.json, and it has a path entity->climate->plugwise->state_attributes->preset_mode
If you look at the second code blob on https://developers.home-assistant.io/docs/core/entity/#icon-translations the "domain" is also mentioned there. Could that be the issue?
But it's soooooo very subtle, that I think the documentation should have a more visible info box to notify about this.
Or maybe I'm just reading it wrong. air_conditioner being the name of the switch. Instead of going with extra_attributes, I was personally thinking about going another way, and having an icon property that checks if the translation key is available. That would avoid storing unnecessary information in the state machine, but it's a tradeoff as always.
I mean ... they'll tell you if your doing something stupid in PR once you get reviewed