Comments (4)
I figured it out. I installed HACS on my test instance and saw that the name of the folder for the custom component is clean_up_snapshots_service
, not as the folder structure in git has it - clean_backups
.
On my production HA server I simply did the following, followed by a restart, and no more errors.
mv /config/custom_components/clean_backups/ /config/custom_components/clean_up_snapshots_service
from clean_up_snapshots.
I'll update the documentation to reflect this.
from clean_up_snapshots.
Let me see. I wasn't seeing this in my instance of homeassistant so I need to see if I can replicate.
from clean_up_snapshots.
I wanted to be sure it wasn't something with my HA instance. So, I just made a new test Home Assistant instance and was able to reproduce it.
- Used VirtualBox to create a new base HA instance. (followed instructions here)
- Added Community SSH & Web Terminal add-on
- SSH'd to new instance and used following commands:
- git clone https://github.com/tmonck/clean_up_snapshots.git
- mkdir /config/custom_components/
- cp -r clean_up_snapshots/custom_components/clean_backups /config/custom_components/
- Created long lived token
- Added following to configuration.yaml
- clean_up_snapshots_service:
- host: http://<ip_addess:8123/
- token:
- number_of_snapshots_to_keep: 3
This produced the same errors as on my production Home Assistant:
Logger: homeassistant.helpers.integration_platform
Source: loader.py:535
First occurred: 10:06:38 AM (5 occurrences)
Last logged: 10:06:38 AM
Unexpected error importing clean_up_snapshots_service/recorder.py
Unexpected error importing clean_up_snapshots_service/media_source.py
Unexpected error importing clean_up_snapshots_service/system_health.py
Unexpected error importing clean_up_snapshots_service/logbook.py
Unexpected error importing clean_up_snapshots_service/group.py
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/integration_platform.py", line 33, in _process
platform = integration.get_platform(platform_name)
File "/usr/src/homeassistant/homeassistant/loader.py", line 530, in get_platform
cache[full_name] = self._import_platform(platform_name)
File "/usr/src/homeassistant/homeassistant/loader.py", line 535, in _import_platform
return importlib.import_module(f"{self.pkg_path}.{platform_name}")
File "/usr/local/lib/python3.9/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 984, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'custom_components.clean_backups.recorder'
I understand if you only want to support HACS installs, and I'm okay with that. But since I've installed other custom integrations the same way and not had an issue, I figured I would ask.
from clean_up_snapshots.
Related Issues (20)
- Error while executing automation automation.daily_snapshot_clean_up. Unknown error for call_service at pos 1: HOT 15
- Thanks HOT 1
- Typo in module call 'dateutil'?
- Unable to remove snapshots after 0.4 HOT 6
- aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host hassio:8123 ssl:True HOT 9
- Error with deleting snapshots HOT 3
- No 'version' key in the manifest file HOT 9
- Error on new HA 2021.6 HOT 7
- Align to HA Code Dev HOT 1
- Update needed to address /backups change HOT 3
- 404 finding remove path HOT 4
- Backups location has changed HOT 2
- Not working since 2023.3.3? HOT 7
- Dependency Dashboard
- Rename service to not include the word snapshots
- Migrate to ConfigFlow HOT 1
- Import is not bringing current configuration
- The 'clean_up_snapshots_service' option near /config/configuration.yaml:1 is deprecated HOT 5
- Missing Icon HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clean_up_snapshots.