feat: Remove automatic automation: module prefix

Instead the prefix should be manually specified if it is desired.
This commit is contained in:
2025-10-15 02:09:28 +02:00
parent 518abd169d
commit 54164c517b
3 changed files with 3 additions and 3 deletions

View File

@@ -71,7 +71,7 @@ pub fn create_module(lua: &mlua::Lua) -> mlua::Result<mlua::Table> {
Ok(devices)
}
inventory::submit! {Module::new("devices", create_module)}
inventory::submit! {Module::new("automation:devices", create_module)}
macro_rules! register_type {
($ty:ty) => {

View File

@@ -41,7 +41,7 @@ pub fn load_modules(lua: &mlua::Lua) -> mlua::Result<()> {
for module in inventory::iter::<Module> {
debug!(name = module.get_name(), "Loading module");
let table = module.register(lua)?;
lua.register_module(&format!("automation:{}", module.get_name()), table)?;
lua.register_module(module.get_name(), table)?;
}
Ok(())

View File

@@ -28,4 +28,4 @@ fn create_module(lua: &mlua::Lua) -> mlua::Result<mlua::Table> {
Ok(utils)
}
inventory::submit! {Module::new("utils", create_module)}
inventory::submit! {Module::new("automation:utils", create_module)}