Renamed the HA host PC - HA still discovers the old PC name
Home Assistant is running as a VM on a Windows PC. I had initially named my Window host PC "HomeAssistant-PC" and had installed HASS.Agent. I renamed the Windows PC "HASS-PC" (shorter name). I uninstalled HASS.Agent from the Windows PC and cleared all directories (I think) and reinstalled. But Home Assistant continues to show "Discovered / HomeAssistant-PC / HASS.Agent / ADD IGNORE" and after manually adding "HASS-PC" to HASS.Agent it shows the "HASS-PC" as unavailable. Also, I see this (see below) in the logs for "HomeAssistant-PC" which may be a clue (?). I've deleted all entries in MQTT related to "HomeAssistant-PC" but entries come back. So, I'm guessing there is something I have not properly cleaned from HASS-PC.
Logger: homeassistant.config_entries
Source: config_entries.py:855
First occurred: 4:03:31 PM (1 occurrences)
Last logged: 4:03:31 PM
Error unloading entry HomeAssistant-PC for notify
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 855, in async_unload
result = await component.async_unload_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/notify/init.py", line 126, in async_unload_entry
return await hass.data[DATA_COMPONENT].async_unload_entry(entry)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 204, in async_unload_entry
raise ValueError("Config entry was never loaded!")
ValueError: Config entry was never loaded
Solution:Jump to solution
Never mind. I just restarted Home Assistant (again - not for the 1st or 2nd time) and now it sees "HASS-PC" not "HomeAssistant-PC". So, I think the problem is resolved. Sorry for the premature post.
5 Replies
Help us Help Others!
To help others find answers, you can mark your question as solved via
Right click solution message -> Apps -> ✅ Mark Solution
Help us Help You!
Please don't delete messages or posts because it makes it impossible to understand what happened. If you don't want your messages to be seen then don't post here.
Please provide us with the version number of your app.
You can find it by clicking the ? at the bottom of the main page and checking under the logo that shows.Please provide us with your integration version number.
You can find it in HACS -> HASS.Agent 2 -> Top left
for installed version number.
We will help as soon as possible.
While you're waiting you can try the following:
- Checkout the documentation. - Search here in discord for previously solved similar issues.
@Amadeo
@DrR0x
deep-jadeOP•4d ago
HASS.Agent v2.1.0
Integration: 2.1.0-beta1
Solution
deep-jade•4d ago
Never mind. I just restarted Home Assistant (again - not for the 1st or 2nd time) and now it sees "HASS-PC" not "HomeAssistant-PC". So, I think the problem is resolved. Sorry for the premature post.