Skip to content

Commit

Permalink
Update CarPlay message while entities are getting filtered (#2544)
Browse files Browse the repository at this point in the history
<!-- Thank you for submitting a Pull Request and helping to improve Home
Assistant. Please complete the following sections to help the processing
and review of your changes. Please do not delete anything from this
template. -->

## Summary
<!-- Provide a brief summary of the changes you have made and most
importantly what they aim to achieve -->

## Screenshots
<!-- If this is a user-facing change not in the frontend, please include
screenshots in light and dark mode. -->

## Link to pull request in Documentation repository
<!-- Pull requests that add, change or remove functionality must have a
corresponding pull request in the Companion App Documentation repository
(https://github.com/home-assistant/companion.home-assistant). Please add
the number of this pull request after the "#" -->
Documentation: home-assistant/companion.home-assistant#

## Any other notes
<!-- If there is any other information of note, like if this Pull
Request is part of a bigger change, please include it here. -->
  • Loading branch information
bgoncal committed Jan 25, 2024
1 parent 261a839 commit e189622
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Sources/App/Resources/en.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
"carPlay.navigation.tab.actions" = "Actions";
"carPlay.navigation.tab.areas" = "Areas";
"carPlay.navigation.tab.domains" = "Control";
"carPlay.state.loading.title" = "Loading...";
"carPlay.no_actions.title" = "Open iOS Companion App to create actions for CarPlay.";
"carPlay.no_entities.title" = "No CarPlay compatible entities available.";
"carPlay.notification.action.intro.body" = "Tap to create your first iOS Action";
Expand Down Expand Up @@ -816,4 +817,4 @@ Home Assistant is free and open source home automation software with a focus on
"widgets.open_page.description" = "Open a frontend page in Home Assistant.";
"widgets.open_page.not_configured" = "No Pages Available";
"widgets.open_page.title" = "Open Page";
"yes_label" = "Yes";
"yes_label" = "Yes";
6 changes: 6 additions & 0 deletions Sources/Shared/Resources/Swiftgen/Strings.swift
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,12 @@ public enum L10n {
}
}
}
public enum State {
public enum Loading {
/// Loading...
public static var title: String { return L10n.tr("Localizable", "carPlay.state.loading.title") }
}
}
public enum Unlock {
public enum Confirmation {
/// Are you sure you want to perform unlock action on %@?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ final class CarPlayEntitiesListTemplate: CarPlayTemplateProvider {
self.viewModel = viewModel

viewModel.templateProvider = self
paginatedListTemplate.template.emptyViewSubtitleVariants = [L10n.CarPlay.NoEntities.title]
paginatedListTemplate.template.emptyViewSubtitleVariants = [L10n.CarPlay.State.Loading.title]
}

func templateWillDisappear(template: CPTemplate) {
Expand Down

0 comments on commit e189622

Please sign in to comment.