Podczas testów z komponentem Timer, stworzyłem pomocnika “mminutnik”.
Nie byłem zadowolony z działanie więc go usunąłem.
Po kilku dnia po restarcie pojawił się komunikat, że jest błąd w konfiguracji
W pomocnikach Minutnik jest niedostępny, ponieważ nie został dodany w konfiguracji
Pozostałość po “usuniętym” pomocniku
Po kliknięciu na “trybik” by usunąć, wyświetla się tylko nazwa
Po restartach HA
1.
Logger: homeassistant.setup
Source: components/timer/__init__.py:290
First occurred: 16:16:11 (1 occurrences)
Last logged: 16:16:11
Error during setup of component timer
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 288, in _async_setup_component
result = await task
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/timer/__init__.py", line 134, in async_setup
await storage_collection.async_load()
File "/usr/src/homeassistant/homeassistant/helpers/collection.py", line 273, in async_load
await self.notify_changes(
File "/usr/src/homeassistant/homeassistant/helpers/collection.py", line 169, in notify_changes
await asyncio.gather(
File "/usr/src/homeassistant/homeassistant/helpers/collection.py", line 491, in _collection_changed
await entity_component.async_add_entities(new_entities)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 507, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 752, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1001, in add_to_platform_finish
await self.async_added_to_hass()
File "/usr/src/homeassistant/homeassistant/components/timer/__init__.py", line 290, in async_added_to_hass
end = cv.datetime(state.attributes[ATTR_FINISHES_AT])
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
KeyError: 'finishes_at'
Logger: homeassistant.components.timer
Source: components/timer/__init__.py:290
Integration: timer (documentation, issues)
First occurred: 16:16:11 (1 occurrences)
Last logged: 16:16:11
Error adding entities for domain timer with platform timer
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 507, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 752, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1001, in add_to_platform_finish
await self.async_added_to_hass()
File "/usr/src/homeassistant/homeassistant/components/timer/__init__.py", line 290, in async_added_to_hass
end = cv.datetime(state.attributes[ATTR_FINISHES_AT])
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
KeyError: 'finishes_at'
Wczoraj była aktualizacja HA, myślałem że nadpisze zepsutą konfiguracje. Niestety nie.
Próbowałem naprawić:
Dodając w pliku konfiguracyjnym dodać timer:
Usunąłem default_config:
i dodałem komponenty “ręcznie” person:, timer:…)
Usunąłem cały folder .cloud
( na forach był podobny problem ale nie z
timer
Cały HA działa bardzo dobrze ( prawie ale to na inny temat) , timer`a nie potrzebuje ale po restarcie muszę kasować wyskakujące ostrzeżenia.
Jest szansa na naprawę jak tak to w jaki sposób ?
/
Kopia zapasowa została nadpisana.
Wydaje mi się, że przy testach ustawiłem czas a następnie usunąłem pomocnika i z tego powodu mam teraz lekko uszkodzony HA
Edit:
Znalazłem rozwiązanie
Wystarczyło usunięcie pliku timer w \config\.storage
Następnie bez problemu mogłem usunąć encje z HA
Teraz konfiguracja nie krzyczy o błędzie czyli problem rozwiązany