1 import ./make-test-python.nix ({ pkgs, lib, ... }:
5 unixSocket = "/run/esphome/esphome.sock";
9 meta.maintainers = with lib.maintainers; [ oddlama ];
22 esphomeUnix = { ... }:
26 enableUnixSocket = true;
32 esphomeTcp.wait_for_unit("esphome.service")
33 esphomeTcp.wait_for_open_port(${toString testPort})
34 esphomeTcp.succeed("curl --fail http://localhost:${toString testPort}/")
36 esphomeUnix.wait_for_unit("esphome.service")
37 esphomeUnix.wait_for_file("${unixSocket}")
38 esphomeUnix.succeed("curl --fail --unix-socket ${unixSocket} http://localhost/")