home-assistant-custom-components.*: make use of lib.packagesFromDirectoryRecursive

So we don't need to manually maintain `pkgs/servers/home-assistant/custom-components/default.nix` anymore
This commit is contained in:
Zhong Jianxin 2024-10-21 20:56:43 +08:00
parent 50db3b6fbb
commit 08eee7bd7a
46 changed files with 4 additions and 96 deletions

View File

@ -1,92 +0,0 @@
{ callPackage
}:
{
adaptive_lighting = callPackage ./adaptive_lighting {};
alarmo = callPackage ./alarmo {};
auth-header = callPackage ./auth-header {};
awtrix = callPackage ./awtrix {};
average = callPackage ./average {};
better_thermostat = callPackage ./better_thermostat {};
bodymiscale = callPackage ./bodymiscale { };
dwd = callPackage ./dwd { };
elevenlabs_tts = callPackage ./elevenlabs_tts {};
emporia_vue = callPackage ./emporia_vue {};
epex_spot = callPackage ./epex_spot {};
frigate = callPackage ./frigate {};
garmin_connect = callPackage ./garmin_connect {};
govee-lan = callPackage ./govee-lan {};
gpio = callPackage ./gpio {};
homematicip_local = callPackage ./homematicip_local { };
indego = callPackage ./indego { };
local_luftdaten = callPackage ./local_luftdaten { };
localtuya = callPackage ./localtuya {};
mass = callPackage ./mass { };
midea_ac = callPackage ./midea_ac { };
midea_ac_lan = callPackage ./midea_ac_lan {};
midea-air-appliances-lan = callPackage ./midea-air-appliances-lan {};
miele = callPackage ./miele {};
moonraker = callPackage ./moonraker {};
nest_protect = callPackage ./nest_protect {};
ntfy = callPackage ./ntfy {};
omnik_inverter = callPackage ./omnik_inverter {};
prometheus_sensor = callPackage ./prometheus_sensor {};
samsungtv-smart = callPackage ./samsungtv-smart {};
sensi = callPackage ./sensi {};
smartir = callPackage ./smartir {};
smartthinq-sensors = callPackage ./smartthinq-sensors {};
solax_modbus = callPackage ./solax_modbus {};
solis-sensor = callPackage ./solis-sensor {};
somweb = callPackage ./somweb {};
spook = callPackage ./spook {};
tuya_local = callPackage ./tuya_local {};
volkswagen_we_connect_id = callPackage ./volkswagen_we_connect_id { };
volkswagencarnet = callPackage ./volkswagencarnet { };
waste_collection_schedule = callPackage ./waste_collection_schedule {};
xiaomi_gateway3 = callPackage ./xiaomi_gateway3 {};
xiaomi_miot = callPackage ./xiaomi_miot {};
yassi = callPackage ./yassi {};
}

View File

@ -24313,10 +24313,10 @@ with pkgs;
home-assistant = callPackage ../servers/home-assistant { };
buildHomeAssistantComponent = callPackage ../servers/home-assistant/build-custom-component { };
home-assistant-custom-components = lib.recurseIntoAttrs
(callPackage ../servers/home-assistant/custom-components {
inherit (home-assistant.python.pkgs) callPackage;
});
home-assistant-custom-components = lib.packagesFromDirectoryRecursive {
inherit (home-assistant.python.pkgs) callPackage;
directory = ../servers/home-assistant/custom-components;
};
home-assistant-custom-lovelace-modules = lib.recurseIntoAttrs
(callPackage ../servers/home-assistant/custom-lovelace-modules {});