Fix use of python to point to specific hass version
This commit is contained in:
parent
35fbc491f1
commit
61f6914734
|
@ -27,14 +27,15 @@
|
||||||
"tplink_tapo"
|
"tplink_tapo"
|
||||||
];
|
];
|
||||||
customComponents =
|
customComponents =
|
||||||
|
let
|
||||||
|
hassPython = config.services.home-assistant.package.python;
|
||||||
|
in
|
||||||
(with pkgs.home-assistant-custom-components; [
|
(with pkgs.home-assistant-custom-components; [
|
||||||
(dirigera_platform.override {
|
(dirigera_platform.override {
|
||||||
dirigera = (pkgs.python312Packages.dirigera.overrideAttrs (final: prev: { doCheck = false; }));
|
dirigera = (hassPython.pkgs.dirigera.overrideAttrs (final: prev: { doCheck = false; }));
|
||||||
})
|
})
|
||||||
])
|
])
|
||||||
++ (with pkgs; [
|
++ [ (hassPython.pkgs.callPackage ./customComponents/tapo_control.nix { }) ];
|
||||||
(home-assistant.python.pkgs.callPackage ./customComponents/tapo_control.nix { })
|
|
||||||
]);
|
|
||||||
config = {
|
config = {
|
||||||
# Includes dependencies for a basic setup
|
# Includes dependencies for a basic setup
|
||||||
# https://www.home-assistant.io/integrations/default_config/
|
# https://www.home-assistant.io/integrations/default_config/
|
||||||
|
|
Loading…
Reference in a new issue