-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add icon translations support #103294
Add icon translations support #103294
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was it intentional to remove the icons from the demo text and time entities?
a73b682
to
7997430
Compare
7997430
to
31b8815
Compare
Yes, while moving this to icon translations, I removed those (as those are the default already). ../Frenck |
484a99c
to
f7e0300
Compare
aac3b8f
to
2cf47cd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @frenck 👍
a2f02f6
to
7a9f6ec
Compare
Co-authored-by: Robert Resch <robert@resch.dev>
Co-authored-by: Robert Resch <robert@resch.dev>
Co-authored-by: Robert Resch <robert@resch.dev>
Co-authored-by: Paul Bottein <paul.bottein@gmail.com>
7a9f6ec
to
70cd1bd
Compare
if files_to_load and ( | ||
load_icons_job := hass.async_add_executor_job(_load_icons_files, files_to_load) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
load_icons_job
will never be falsy, as it will always return a Future. I think we can remove the second condition.
|
||
integrations: dict[str, Integration] = {} | ||
domains = list({loaded.rpartition(".")[-1] for loaded in components}) | ||
ints_or_excs = await async_get_integrations(self._hass, domains) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should write out the words in the variable name. ints
sounds like integers to me.
Proposed change
Add support for icon translations, as described in:
home-assistant/architecture#980
Frontend support: home-assistant/frontend#19406
Type of change
Additional information
Checklist
black --fast homeassistant tests
)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest
.requirements_all.txt
.Updated by running
python3 -m script.gen_requirements_all
..coveragerc
.To help with the load of incoming pull requests: