diff --git a/config/custom_components/hacs/.translations/de.json b/config/custom_components/hacs/.translations/de.json index 963b72fc..de4341e0 100644 --- a/config/custom_components/hacs/.translations/de.json +++ b/config/custom_components/hacs/.translations/de.json @@ -80,6 +80,9 @@ "upgrade_all": "Hierdurch werden all diese Repositories aktualisiert. Stelle sicher, dass du die Versionshinweise vorher gelesen hast.", "yes": "Ja" }, + "menu": { + "dismiss": "Alle neuen Repositories ausblenden" + }, "options": { "step": { "user": { @@ -107,6 +110,9 @@ "restart": "Du musst Home Assistant neu starten.", "restart_pending": "Neustart ausstehend" }, + "repository_card": { + "dismiss": "Ausblenden" + }, "repository": { "add_to_lovelace": "Zu Lovelace hinzufügen", "authors": "Autoren", @@ -191,6 +197,7 @@ "last_updated": "Zuletzt aktualisiert", "name": "Name", "new_repositories": "Neue Repositories", + "new_repositories_note": "Hier werden über 10 neue Repositorys angezeigt. Wenn Sie alle als gelesen markieren möchten, klicken Sie auf die 3 Punkte in der oberen rechten Ecke und blenden sie alle aus.", "pending_upgrades": "Ausstehende Upgrades", "placeholder_search": "Suchbegriff eingeben…", "sort": "Sortieren", diff --git a/config/custom_components/hacs/.translations/en.json b/config/custom_components/hacs/.translations/en.json index 22efc2fd..c5e50ac1 100644 --- a/config/custom_components/hacs/.translations/en.json +++ b/config/custom_components/hacs/.translations/en.json @@ -24,9 +24,9 @@ "netdaemon": "NetDaemon", "netdaemon_apps": "NetDaemon Apps", "netdaemon_plural": "NetDaemon Apps", - "plugin": "Plugin", + "plugin": "Lovelace", "plugin_plural": "Lovelace elements", - "plugins": "Plugins", + "plugins": "Lovelace elements", "python_script": "Python Script", "python_script_plural": "Python Scripts", "python_scripts": "Python Scripts", @@ -94,6 +94,7 @@ "dialog_add_repo": { "limit": "Only the first 100 repositories are shown, use the search to filter what you need", "no_match": "No repositories found matching your filter", + "sort_by": "Sort by", "title": "Add repository" }, "dialog_custom_repositories": { @@ -115,6 +116,7 @@ "version_installed": "Version installed" }, "dialog_install": { + "restart": "Remember that you need to restart Home Assistant before changes to integrations (custom_components) are applied.", "select_version": "Select version", "show_beta": "Show beta versions", "type": "Type", @@ -149,6 +151,7 @@ "about": "About HACS", "clear": "Clear all new", "custom_repositories": "Custom repositories", + "dismiss": "Dismiss all new repositories", "documentation": "Documentation", "open_issue": "Open issue", "reload": "Reload window" @@ -181,6 +184,7 @@ "restart_pending": "Restart pending" }, "repository_card": { + "dismiss": "dismiss", "hide": "Hide", "information": "Information", "new_repository": "New repository", @@ -216,7 +220,7 @@ "note_plugin": "you still need to add it to your lovelace configuration ('ui-lovelace.yaml' or the raw UI config editor)", "note_plugin_post_107": "you still need to add it to your lovelace configuration ('configuration.yaml' or the resource editor '\/config\/lovelace\/resources')", "open_issue": "Open issue", - "open_plugin": "Open plugin", + "open_plugin": "Open element", "reinstall": "Reinstall", "repository": "Repository", "restart_home_assistant": "Restart Home Assistant", @@ -278,6 +282,7 @@ "last_updated": "Last updated", "name": "Name", "new_repositories": "New Repositories", + "new_repositories_note": "You have over 10 new repositories showing here, if you want to clear them all click the 3 dots in the top right corner and dismiss all of them.", "no_repositories": "No repositories", "no_repositories_desc1": "It seems like you don't have any repositories installed in this section yet.", "no_repositories_desc2": "Click on the + in the bottom corner to add your first!", diff --git a/config/custom_components/hacs/.translations/hu.json b/config/custom_components/hacs/.translations/hu.json index a5f08ba2..91d4c37f 100644 --- a/config/custom_components/hacs/.translations/hu.json +++ b/config/custom_components/hacs/.translations/hu.json @@ -1,6 +1,7 @@ { "common": { "about": "Névjegy", + "add": "hozzáadás", "appdaemon": "AppDaemon", "appdaemon_apps": "AppDaemon Appok", "appdaemon_plural": "AppDaemon appok", @@ -11,6 +12,7 @@ "documentation": "Dokumentáció", "element": "bővítmény", "hacs_is_disabled": "A HACS le van tiltva", + "install": "Telepítés", "installed": "Telepített", "integration": "Integráció", "integration_plural": "Integrációk", @@ -29,10 +31,13 @@ "python_script_plural": "Python szkriptek", "python_scripts": "Python Szkriptek", "repositories": "Tárolók", + "repository": "Tároló", "settings": "beállítások", "theme": "Téma", "theme_plural": "Témák", "themes": "Témák", + "uninstall": "Eltávolítás", + "update": "Frissítés", "version": "Verzió" }, "config": { @@ -80,6 +85,71 @@ "upgrade_all": "Ez frissíteni fogja az összes tárolót. Győzödj meg róla, hogy elolvastad az összes kiadási megjegyzést, mielőtt továbblépnél.", "yes": "Igen" }, + "dialog_about": { + "frontend_version": "Frontend verzió", + "installed_repositories": "Telepített tárolók", + "integration_version": "Integráció verzió", + "useful_links": "Hasznos linkek" + }, + "dialog_add_repo": { + "limit": "Csak az első 100 tároló jelenik meg, használd a keresőt a találatok szűkítéséhez", + "no_match": "Nincs a szűrőnek megfelelő tároló", + "title": "Tároló hozzáadása" + }, + "dialog_custom_repositories": { + "category": "Kategória", + "no_category": "Hiányzó kategória", + "no_repository": "Hiányzó tároló", + "title": "Egyéni tárolók", + "url_placeholder": "Egyéni tároló URL címének hozzáadása" + }, + "dialog_info": { + "author": "Szerző", + "downloads": "Letöltések", + "install": "Tároló telepítése HACS-ben", + "loading": "Információ betöltése...", + "no_info": "A fejlesztő nem adott meg több információt ehhez a tárolóhoz", + "open_repo": "Tároló megnyitása", + "stars": "Csillagok", + "version_installed": "Telepített verzió" + }, + "dialog_install": { + "select_version": "Verzió kiválasztása", + "show_beta": "Béta verziók megjelenítése", + "type": "Típus", + "url": "URL" + }, + "dialog_update": { + "available_version": "Elérhető verzió", + "changelog": "Változási napló", + "installed_version": "Telepített verzió", + "title": "Frissítés függőben" + }, + "entry": { + "information": "Információ", + "messages": { + "disabled": { + "content": "További részletek a naplófájlban", + "title": "A HACS le van tiltva" + }, + "has_pending_tasks": { + "title": "Függőben lévő háttérfeladatok" + }, + "startup": { + "content": "A HACS éppen indul, ezidő alatt egyes információk hiányozhatnak vagy helytelenek lehetnek", + "title": "A HACS indul" + } + }, + "pending_updates": "Függő frissítések" + }, + "menu": { + "about": "HACS névjegye", + "clear": "Új jelölések törlése", + "custom_repositories": "Egyéni tárolók", + "documentation": "Dokumentáció", + "open_issue": "Probléma jelentése", + "reload": "Ablak újratöltése" + }, "options": { "step": { "user": { @@ -107,6 +177,17 @@ "restart": "Indítsd újra a Home Assistant programot.", "restart_pending": "Újraindítás függőben" }, + "repository_card": { + "hide": "Elrejtés", + "information": "Információ", + "new_repository": "Új tároló", + "open_issue": "Probléma jelentése", + "open_source": "Forrás megnyitása", + "pending_update": "Függő frissítés", + "reinstall": "Újratelepítés", + "report": "Jelentés eltávolításra", + "update_information": "Frissítési információk" + }, "repository": { "add_to_lovelace": "Hozzáadás a Lovelace-hez", "authors": "Szerzők", @@ -141,6 +222,9 @@ "update_information": "Frissítési információk", "upgrade": "Frissítés" }, + "search": { + "placeholder": "Tároló keresése" + }, "sections": { "about": { "description": "Információk megjelenítése a HACS-ről", @@ -191,6 +275,8 @@ "last_updated": "Utolsó frissítés", "name": "Név", "new_repositories": "Új tárolók", + "no_repositories": "Nincs tároló", + "no_repositories_desc1": "Úgy tűnik, még nincsenek telepítve tárolók ebben a részben.", "pending_upgrades": "Függőben lévő frissítések", "placeholder_search": "Kérlek adj meg egy keresési kifejezést...", "sort": "rendezés", diff --git a/config/custom_components/hacs/__init__.py b/config/custom_components/hacs/__init__.py index a322baae..236e569c 100644 --- a/config/custom_components/hacs/__init__.py +++ b/config/custom_components/hacs/__init__.py @@ -198,11 +198,12 @@ async def async_remove_entry(hass, config_entry): hacs.logger.info("Removing recuring tasks") for task in hacs.recuring_tasks: task() - hacs.logger.info("Removing sensor") - try: - await hass.config_entries.async_forward_entry_unload(config_entry, "sensor") - except ValueError: - pass + if config_entry.state == "loaded": + hacs.logger.info("Removing sensor") + try: + await hass.config_entries.async_forward_entry_unload(config_entry, "sensor") + except ValueError: + pass hacs.logger.info("Removing sidepanel") try: hass.components.frontend.async_remove_panel("hacs") diff --git a/config/custom_components/hacs/const.py b/config/custom_components/hacs/const.py index dc26940e..ba166cdc 100644 --- a/config/custom_components/hacs/const.py +++ b/config/custom_components/hacs/const.py @@ -1,7 +1,7 @@ """Constants for HACS""" NAME_LONG = "HACS (Home Assistant Community Store)" NAME_SHORT = "HACS" -VERSION = "1.0.1" +VERSION = "1.0.3" DOMAIN = "hacs" PROJECT_URL = "https://github.com/hacs/integration/" CUSTOM_UPDATER_LOCATIONS = [ diff --git a/config/custom_components/hacs/manifest.json b/config/custom_components/hacs/manifest.json index 58e1323c..84b2f999 100644 --- a/config/custom_components/hacs/manifest.json +++ b/config/custom_components/hacs/manifest.json @@ -14,7 +14,7 @@ "aiofiles==0.5.0", "aiogithubapi==1.0.4", "backoff==1.10.0", - "hacs_frontend==20200522122100", + "hacs_frontend==202005242033", "integrationhelper==0.2.2", "semantic_version==2.8.5", "queueman==0.5" diff --git a/config/packages/neato.yaml b/config/packages/neato.yaml index 479a8131..0f18a085 100755 --- a/config/packages/neato.yaml +++ b/config/packages/neato.yaml @@ -5,7 +5,7 @@ #------------------------------------------- ############################################################################## -### Automations - Detect when things are not right. Like any Good Watchdog. +### Automations - Tweet out When neato is heading back to his Dock for recharging. ############################################################################## automation: - alias: 'Vacuum -Tweet' @@ -40,3 +40,49 @@ automation: {{ [ "/config/www/custom_ui/floorplan/images/branding/neato.png" ] | random }} + +############################################################################## +### Automations - Help Neato! +############################################################################## + + - alias: 'Help Neato' + trigger: + - platform: state + entity_id: vacuum.carlo_neato + to: 'error' + - platform: event + event_type: event_did_someone_help + + condition: + - condition: state + entity_id: vacuum.carlo_neato + state: 'error' + + action: + - wait_template: >- + {{ states.group.family.state == 'home' }} + + - service: script.speech_engine + data_template: + value1: > + {{ [ + "Neato is asking for help. The error reported is {{ trigger.to_state.attributes.status }}. Please find him and help him.", + "Please be nice and help Neato. He is complaining about {{ trigger.to_state.attributes.status }}", + "If you don't want to vacuum, you need to help Neato. He is complaining about {{ trigger.to_state.attributes.status }} and needs help.", + "Something is wrong with Neato. Please find him and help him. I have detected a {{ trigger.to_state.attributes.status }} error." + ] | random }} + + - service: vacuum.locate + entity_id: vacuum.carlo_neato + + - service: script.notify_engine + data_template: + title: 'Help Neato' + value1: '{{ trigger.to_state.attributes.status }}' + who: 'family' + ios_category: 'camera' + camera_entity: 'camera.carlo_neato_cleaning_map' + content_type: 'jpeg' + + - delay: 00:20:00 + - event: event_did_someone_help