junkfix / config-editor Goto Github PK
View Code? Open in Web Editor NEWHome Assistant Configuration Editor Helper
Home Assistant Configuration Editor Helper
The Config Editor Version entity (config_editor.version) does not have a unique ID, which means it is not possible to edit, e.g. to hide it from the dashboard.
When trying to edit it Home Assistant reports:
This entity ('config_editor.version') does not have a unique ID, therefore its settings cannot be managed from the UI. See the
documentation for more detail.
I was thinking if the custome component would have the 3 options below
1- Sort the yaml files in alphabetical order as it would be easier to find the file needed
2- create a new yaml file and start editing it
3-(could be difficult) to have a save option fixed on top even when scrolling the yaml file instead of going all the way up to save
Other than that I find it complete for now. Keep it up mate
pi@Pi4:~/docker/home-assistant/dwains-dashboard $ tree
.
├── addons
│ ├── house_information
│ │ └── statistics.yaml <--- does not show in get files
└── configs
├── cameras.yaml
├── global.yaml
├── house_information.yaml
├── icons.yaml
├── more_page.yaml
├── persons.yaml
└── rooms.yaml
I get the following message when going into hacs related to config-editor.
"You have 1 Lovelace elements that are not loaded properly in Lovelace."
The rest of the editor works perfectly.
Thanks in advance for your help
Core 2024.6.2
Supervisor 2024.06.0
Operating System 12.3
Interface utilisateur 20240610.0
2024-06-13 14:05:14.918 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to open inside the event loop by custom integration 'config_editor' at custom_components/config_editor/init.py, line 69: with open(fullpath, encoding="utf-8") as fdesc: (offender: /config/custom_components/config_editor/init.py, line 69: with open(fullpath, encoding="utf-8") as fdesc:), please create a bug report at https://github.com/htmltiger/config-editor/issues
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "/usr/src/homeassistant/homeassistant/main.py", line 223, in
sys.exit(main())
File "/usr/src/homeassistant/homeassistant/main.py", line 209, in main
exit_code = runner.run(runtime_conf)
File "/usr/src/homeassistant/homeassistant/runner.py", line 190, in run
return loop.run_until_complete(setup_and_run_hass(runtime_config))
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 672, in run_until_complete
self.run_forever()
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 639, in run_forever
self._run_once()
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1988, in _run_once
handle._run()
File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run
self._context.run(self._callback, *self._args)
File "/usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py", line 452, in _handle_request
resp = await request_handler(request)
File "/usr/local/lib/python3.12/site-packages/aiohttp/web_app.py", line 543, in handle
resp = await handler(request)
File "/usr/local/lib/python3.12/site-packages/aiohttp/web_middlewares.py", line 114, in impl
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 92, in security_filter_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 83, in forwarded_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 26, in request_context_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 85, in ban_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 242, in auth_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/headers.py", line 32, in headers_middleware
response = await handler(request)
File "/usr/src/homeassistant/homeassistant/helpers/http.py", line 73, in handle
result = await handler(request, **request.match_info)
File "/usr/src/homeassistant/homeassistant/components/websocket_api/http.py", line 54, in get
return await WebSocketHandler(request.app[KEY_HASS], request).async_handle()
File "/usr/src/homeassistant/homeassistant/components/websocket_api/http.py", line 438, in async_handle
async_handle_str(command_msg_data)
File "/usr/src/homeassistant/homeassistant/components/websocket_api/connection.py", line 229, in async_handle
handler(self.hass, self, schema(msg))
File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 68, in with_admin
func(hass, connection, msg)
File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 46, in schedule_handler
hass.async_create_background_task(
File "/usr/src/homeassistant/homeassistant/core.py", line 860, in async_create_background_task
task = create_eager_task(target, name=name, loop=self.loop)
File "/usr/src/homeassistant/homeassistant/util/async.py", line 37, in create_eager_task
return Task(coro, loop=loop, name=name, eager_start=True)
File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 27, in _handle_async_response
await func(hass, connection, msg)
File "/config/custom_components/config_editor/init.py", line 69, in websocket_create
with open(fullpath, encoding="utf-8") as fdesc:
beware, after installing this my ha installation got out of memory...
6GB 8cores.... deleted this addon and upgraded mem to 8gb..
Here is the issue from the HA log:
WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to open inside the event loop by custom integration 'config_editor' at custom_components/config_editor/__init__.py, line 69: with open(fullpath, encoding="utf-8") as fdesc: (offender: /config/custom_components/config_editor/__init__.py, line 69: with open(fullpath, encoding="utf-8") as fdesc:), please create a bug report at https://github.com/htmltiger/config-editor/issues
Hi, great great addition to HA. I've been thinking that a way of editing the yaml within the browser was an essential missing part of HA since i started using it. I don't have to use code-server anymore!
Option to add shortcut button to the left hand list of sections (ie somewhere in between Overview, Energy, Map etc (prob more at the bottom though) It must be possible to do given that I've just installed a different component via HACS called dwaines dashboard and it has added an item in that list. It would be a bit easier than using a card to do the editing
Option to auto open a specific file
Option to chose from other commonly editable file formats, such as .js or .css
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.