2021-03-09 03:18:52 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, python3
|
2021-05-20 23:08:51 +00:00
|
|
|
, inetutils
|
2021-03-09 03:18:52 +00:00
|
|
|
, nixosTests
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# Look up dependencies of specified components in component-packages.nix
|
|
|
|
, extraComponents ? [ ]
|
|
|
|
|
|
|
|
# Additional packages to add to propagatedBuildInputs
|
|
|
|
, extraPackages ? ps: []
|
|
|
|
|
|
|
|
# Override Python packages using
|
|
|
|
# self: super: { pkg = super.pkg.overridePythonAttrs (oldAttrs: { ... }); }
|
|
|
|
# Applied after defaultOverrides
|
2021-02-19 19:06:45 +00:00
|
|
|
, packageOverrides ? self: super: {}
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# Skip pip install of required packages on startup
|
|
|
|
, skipPip ? true }:
|
|
|
|
|
|
|
|
let
|
|
|
|
defaultOverrides = [
|
2021-12-06 16:07:01 +00:00
|
|
|
# Remove with Home Assistant 2021.12
|
|
|
|
(mkOverride "PyChromecast" "9.4.0" "sha256-Y8PLrjxZHml7BmklEJ/VXGqkRyneAy+QVA5rusPeBHQ=")
|
|
|
|
|
|
|
|
# aiounify 29 breaks integration tests
|
|
|
|
(self: super: {
|
|
|
|
aiounifi = super.aiounifi.overridePythonAttrs (oldAttrs: rec {
|
|
|
|
version = "28";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Kane610";
|
|
|
|
repo = "aiounifi";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1r86pk80sa1la2s7c6v9svh5cpkci6jcw1xziz0h09jdvv5j5iff";
|
|
|
|
};
|
|
|
|
});
|
|
|
|
})
|
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
# Override the version of some packages pinned in Home Assistant's setup.py and requirements_all.txt
|
|
|
|
(mkOverride "python-slugify" "4.0.1" "69a517766e00c1268e5bbfc0d010a0a8508de0b18d30ad5a1ff357f8ae724270")
|
|
|
|
|
2021-10-28 06:52:43 +00:00
|
|
|
(self: super: {
|
2021-12-06 16:07:01 +00:00
|
|
|
huawei-lte-api = super.huawei-lte-api.overridePythonAttrs (oldAttrs: rec {
|
|
|
|
version = "1.4.18";
|
2021-10-28 06:52:43 +00:00
|
|
|
src = fetchFromGitHub {
|
2021-12-06 16:07:01 +00:00
|
|
|
owner = "Salamek";
|
|
|
|
repo = "huawei-lte-api";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1qaqxmh03j10wa9wqbwgc5r3ays8wfr7bldvsm45fycr3qfyn5fg";
|
2021-10-28 06:52:43 +00:00
|
|
|
};
|
2021-12-06 16:07:01 +00:00
|
|
|
propagatedBuildInputs = oldAttrs.propagatedBuildInputs ++ [ python3.pkgs.dicttoxml ];
|
2021-10-28 06:52:43 +00:00
|
|
|
});
|
|
|
|
})
|
|
|
|
|
2021-03-23 19:22:30 +00:00
|
|
|
# Pinned due to API changes in iaqualink>=2.0, remove after
|
|
|
|
# https://github.com/home-assistant/core/pull/48137 was merged
|
|
|
|
(self: super: {
|
|
|
|
iaqualink = super.iaqualink.overridePythonAttrs (oldAttrs: rec {
|
2021-06-28 23:13:55 +00:00
|
|
|
version = "0.3.90";
|
2021-03-23 19:22:30 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "flz";
|
|
|
|
repo = "iaqualink-py";
|
|
|
|
rev = "v${version}";
|
2021-06-28 23:13:55 +00:00
|
|
|
sha256 = "0c8ckbbr1n8gx5k63ymgyfkbz3d0rbdvghg8fqdvbg4nrigrs5v0";
|
2021-03-23 19:22:30 +00:00
|
|
|
};
|
|
|
|
checkInputs = oldAttrs.checkInputs ++ [ python3.pkgs.asynctest ];
|
|
|
|
});
|
|
|
|
})
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
# Pinned due to API changes in influxdb-client>1.21.0
|
|
|
|
(self: super: {
|
|
|
|
influxdb-client = super.influxdb-client.overridePythonAttrs (oldAttrs: rec {
|
|
|
|
version = "1.21.0";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "influxdata";
|
|
|
|
repo = "influxdb-client-python";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "081pwd3aa7kbgxqcl1hfi2ny4iapnxkcp9ypsfslr69d0khvfc4s";
|
|
|
|
};
|
|
|
|
});
|
|
|
|
})
|
|
|
|
|
|
|
|
(self: super: {
|
|
|
|
nettigo-air-monitor = super.nettigo-air-monitor.overridePythonAttrs (oldAttrs: rec {
|
|
|
|
version = "1.1.1";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bieniu";
|
|
|
|
repo = "nettigo-air-monitor";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "sha256-OIB1d6XtstUr5P0q/dmyJS7+UbtkFQIiuSnzwcdP1mE=";
|
|
|
|
};
|
|
|
|
});
|
|
|
|
})
|
|
|
|
|
2021-04-12 18:23:04 +00:00
|
|
|
# Pinned due to API changes in pyruckus>0.12
|
|
|
|
(self: super: {
|
|
|
|
pyruckus = super.pyruckus.overridePythonAttrs (oldAttrs: rec {
|
|
|
|
version = "0.12";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "gabe565";
|
|
|
|
repo = "pyruckus";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "0ykv6r6blbj3fg9fplk9i7xclkv5d93rwvx0fm5s8ms9f2s9ih8z";
|
|
|
|
};
|
|
|
|
});
|
|
|
|
})
|
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
# Pinned due to API changes in eebrightbox>=0.0.5
|
2021-05-20 23:08:51 +00:00
|
|
|
(self: super: {
|
2021-06-28 23:13:55 +00:00
|
|
|
eebrightbox = super.eebrightbox.overridePythonAttrs (oldAttrs: rec {
|
|
|
|
version = "0.0.4";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "krygal";
|
|
|
|
repo = "eebrightbox";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "0d8mmpwgrd7gymw5263r1v2wjv6dx6w6pq13d62fkfm4h2hya4a4";
|
2021-05-20 23:08:51 +00:00
|
|
|
};
|
|
|
|
});
|
|
|
|
})
|
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
# Pinned due to API changes in 0.1.0
|
|
|
|
(mkOverride "poolsense" "0.0.8" "09y4fq0gdvgkfsykpxnvmfv92dpbknnq5v82spz43ak6hjnhgcyp")
|
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
# home-assistant-frontend does not exist in python3.pkgs
|
2020-04-24 23:36:52 +00:00
|
|
|
(self: super: {
|
2021-06-28 23:13:55 +00:00
|
|
|
home-assistant-frontend = self.callPackage ./frontend.nix { };
|
2020-04-24 23:36:52 +00:00
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
mkOverride = attrname: version: sha256:
|
|
|
|
self: super: {
|
|
|
|
${attrname} = super.${attrname}.overridePythonAttrs (oldAttrs: {
|
|
|
|
inherit version;
|
|
|
|
src = oldAttrs.src.override {
|
|
|
|
inherit version sha256;
|
|
|
|
};
|
|
|
|
});
|
|
|
|
};
|
|
|
|
|
|
|
|
py = python3.override {
|
|
|
|
# Put packageOverrides at the start so they are applied after defaultOverrides
|
|
|
|
packageOverrides = lib.foldr lib.composeExtensions (self: super: { }) ([ packageOverrides ] ++ defaultOverrides);
|
|
|
|
};
|
|
|
|
|
|
|
|
componentPackages = import ./component-packages.nix;
|
|
|
|
|
|
|
|
availableComponents = builtins.attrNames componentPackages.components;
|
|
|
|
|
|
|
|
getPackages = component: builtins.getAttr component componentPackages.components;
|
|
|
|
|
|
|
|
componentBuildInputs = lib.concatMap (component: getPackages component py.pkgs) extraComponents;
|
|
|
|
|
|
|
|
# Ensure that we are using a consistent package set
|
|
|
|
extraBuildInputs = extraPackages py.pkgs;
|
|
|
|
|
|
|
|
# Don't forget to run parse-requirements.py after updating
|
2021-12-06 16:07:01 +00:00
|
|
|
hassVersion = "2021.11.5";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
in with py.pkgs; buildPythonApplication rec {
|
|
|
|
pname = "homeassistant";
|
|
|
|
version = assert (componentPackages.version == hassVersion); hassVersion;
|
|
|
|
|
2020-10-11 12:50:04 +00:00
|
|
|
# check REQUIRED_PYTHON_VER in homeassistant/const.py
|
2021-03-09 03:18:52 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-09 10:05:03 +00:00
|
|
|
# don't try and fail to strip 6600+ python files, it takes minutes!
|
|
|
|
dontStrip = true;
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
# PyPI tarball is missing tests/ directory
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "home-assistant";
|
2020-05-29 06:06:01 +00:00
|
|
|
repo = "core";
|
2020-04-24 23:36:52 +00:00
|
|
|
rev = version;
|
2021-12-06 16:07:01 +00:00
|
|
|
sha256 = "sha256-5MxArJLzOg9dU4Q2c6BDjvEzR2u7UVumNZjwE84+br8=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-11-06 00:33:48 +00:00
|
|
|
# leave this in, so users don't have to constantly update their downstream patch handling
|
2021-03-09 03:18:52 +00:00
|
|
|
patches = [
|
2021-07-24 12:14:16 +00:00
|
|
|
./0001-tests-ignore-OSErrors-in-hass-fixture.patch
|
2021-03-09 03:18:52 +00:00
|
|
|
];
|
2020-11-06 00:33:48 +00:00
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
2021-12-06 16:07:01 +00:00
|
|
|
--replace "async_timeout==3.0.1" "async_timeout" \
|
|
|
|
--replace "awesomeversion==21.10.1" "awesomeversion" \
|
|
|
|
--replace "aiohttp==3.7.4.post0" "aiohttp" \
|
2021-04-08 16:26:57 +00:00
|
|
|
--replace "bcrypt==3.1.7" "bcrypt" \
|
2020-12-25 13:55:36 +00:00
|
|
|
--replace "pip>=8.0.3,<20.3" "pip" \
|
2021-12-06 16:07:01 +00:00
|
|
|
--replace "pyyaml==6.0" "pyyaml" \
|
|
|
|
--replace "yarl==1.6.3" "yarl"
|
2020-10-11 12:50:04 +00:00
|
|
|
substituteInPlace tests/test_config.py --replace '"/usr"' '"/build/media"'
|
2020-09-25 04:45:31 +00:00
|
|
|
'';
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [
|
2021-06-28 23:13:55 +00:00
|
|
|
# Only packages required in setup.py
|
2021-02-05 17:12:51 +00:00
|
|
|
aiohttp
|
|
|
|
astral
|
|
|
|
async-timeout
|
|
|
|
attrs
|
2021-02-13 14:23:35 +00:00
|
|
|
awesomeversion
|
2021-02-05 17:12:51 +00:00
|
|
|
bcrypt
|
|
|
|
certifi
|
|
|
|
ciso8601
|
|
|
|
cryptography
|
|
|
|
httpx
|
|
|
|
jinja2
|
|
|
|
pip
|
|
|
|
pyjwt
|
|
|
|
python-slugify
|
|
|
|
pytz
|
|
|
|
pyyaml
|
|
|
|
requests
|
2021-12-06 16:07:01 +00:00
|
|
|
ruamel-yaml
|
2021-02-05 17:12:51 +00:00
|
|
|
voluptuous
|
|
|
|
voluptuous-serialize
|
|
|
|
yarl
|
2021-06-28 23:13:55 +00:00
|
|
|
# Not in setup.py, but used in homeassistant/util/package.py
|
|
|
|
setuptools
|
|
|
|
] ++ lib.optionals (pythonOlder "3.9") [
|
|
|
|
backports-zoneinfo
|
2020-04-24 23:36:52 +00:00
|
|
|
] ++ componentBuildInputs ++ extraBuildInputs;
|
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
makeWrapperArgs = lib.optional skipPip "--add-flags --skip-pip";
|
|
|
|
|
2020-05-15 21:57:56 +00:00
|
|
|
# upstream only tests on Linux, so do we.
|
|
|
|
doCheck = stdenv.isLinux;
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
checkInputs = [
|
2021-05-20 23:08:51 +00:00
|
|
|
# test infrastructure (selectively from requirement_test.txt)
|
2021-12-06 16:07:01 +00:00
|
|
|
freezegun
|
2021-02-05 17:12:51 +00:00
|
|
|
pytest-aiohttp
|
2021-12-06 16:07:01 +00:00
|
|
|
pytest-freezegun
|
2021-05-20 23:08:51 +00:00
|
|
|
pytest-mock
|
2021-03-09 03:18:52 +00:00
|
|
|
pytest-rerunfailures
|
2021-12-06 16:07:01 +00:00
|
|
|
pytest-socket
|
2021-02-05 17:12:51 +00:00
|
|
|
pytest-xdist
|
|
|
|
pytestCheckHook
|
|
|
|
requests-mock
|
2021-09-18 10:52:07 +00:00
|
|
|
stdlib-list
|
2021-05-20 23:08:51 +00:00
|
|
|
jsonpickle
|
2021-03-09 03:18:52 +00:00
|
|
|
respx
|
2021-05-20 23:08:51 +00:00
|
|
|
# required by tests/auth/mfa_modules
|
|
|
|
pyotp
|
2021-02-05 17:12:51 +00:00
|
|
|
] ++ lib.concatMap (component: getPackages component py.pkgs) componentTests;
|
2020-10-11 12:50:04 +00:00
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
# We can reasonably test components that don't communicate with any network
|
|
|
|
# services. Before adding new components to this list make sure we have all
|
|
|
|
# its dependencies packaged and listed in ./component-packages.nix.
|
2020-10-11 12:50:04 +00:00
|
|
|
componentTests = [
|
2021-05-20 23:08:51 +00:00
|
|
|
"abode"
|
2021-04-05 15:23:46 +00:00
|
|
|
"accuweather"
|
2021-05-20 23:08:51 +00:00
|
|
|
"acmeda"
|
|
|
|
"adguard"
|
|
|
|
"advantage_air"
|
2021-06-28 23:13:55 +00:00
|
|
|
"aemet"
|
2021-05-20 23:08:51 +00:00
|
|
|
"agent_dvr"
|
|
|
|
"air_quality"
|
2021-04-05 15:23:46 +00:00
|
|
|
"airly"
|
2021-05-20 23:08:51 +00:00
|
|
|
"airnow"
|
2021-10-17 09:34:42 +00:00
|
|
|
"airthings"
|
2021-05-20 23:08:51 +00:00
|
|
|
"airvisual"
|
|
|
|
"alarm_control_panel"
|
|
|
|
"alarmdecoder"
|
2021-03-09 03:18:52 +00:00
|
|
|
"alert"
|
2021-05-20 23:08:51 +00:00
|
|
|
"alexa"
|
|
|
|
"almond"
|
|
|
|
"ambiclimate"
|
|
|
|
"ambient_station"
|
|
|
|
"analytics"
|
|
|
|
"androidtv"
|
|
|
|
"apache_kafka"
|
2020-10-11 12:50:04 +00:00
|
|
|
"api"
|
2021-05-20 23:08:51 +00:00
|
|
|
"apple_tv"
|
|
|
|
"apprise"
|
2021-06-28 23:13:55 +00:00
|
|
|
"aprs"
|
|
|
|
"arcam_fmj"
|
2021-05-20 23:08:51 +00:00
|
|
|
"arlo"
|
|
|
|
"asuswrt"
|
2021-06-28 23:13:55 +00:00
|
|
|
"atag"
|
2021-05-20 23:08:51 +00:00
|
|
|
"august"
|
|
|
|
"aurora"
|
2021-03-09 03:18:52 +00:00
|
|
|
"auth"
|
2020-10-11 12:50:04 +00:00
|
|
|
"automation"
|
2021-05-20 23:08:51 +00:00
|
|
|
"awair"
|
|
|
|
"aws"
|
2021-04-05 15:23:46 +00:00
|
|
|
"axis"
|
2021-06-28 23:13:55 +00:00
|
|
|
"azure_devops"
|
|
|
|
"azure_event_hub"
|
2021-03-09 03:18:52 +00:00
|
|
|
"bayesian"
|
|
|
|
"binary_sensor"
|
2021-05-20 23:08:51 +00:00
|
|
|
"blackbird"
|
2021-06-28 23:13:55 +00:00
|
|
|
"blebox"
|
|
|
|
"blink"
|
2021-05-20 23:08:51 +00:00
|
|
|
"blueprint"
|
|
|
|
"bluetooth_le_tracker"
|
2021-06-28 23:13:55 +00:00
|
|
|
"bmw_connected_drive"
|
|
|
|
"bond"
|
|
|
|
"bosch_shc"
|
2021-05-20 23:08:51 +00:00
|
|
|
"braviatv"
|
|
|
|
"broadlink"
|
2021-04-25 03:57:28 +00:00
|
|
|
"brother"
|
2021-05-20 23:08:51 +00:00
|
|
|
"bsblan"
|
2021-06-28 23:13:55 +00:00
|
|
|
"buienradar"
|
2021-03-09 03:18:52 +00:00
|
|
|
"caldav"
|
|
|
|
"calendar"
|
|
|
|
"camera"
|
2021-05-20 23:08:51 +00:00
|
|
|
"canary"
|
2021-04-08 16:26:57 +00:00
|
|
|
"cast"
|
2021-05-20 23:08:51 +00:00
|
|
|
"cert_expiry"
|
|
|
|
"climacell"
|
2021-03-09 03:18:52 +00:00
|
|
|
"climate"
|
|
|
|
"cloud"
|
2021-05-20 23:08:51 +00:00
|
|
|
"cloudflare"
|
2021-06-28 23:13:55 +00:00
|
|
|
"color_extractor"
|
2021-04-17 00:35:05 +00:00
|
|
|
"comfoconnect"
|
2021-03-09 03:18:52 +00:00
|
|
|
"command_line"
|
2021-05-20 23:08:51 +00:00
|
|
|
"compensation"
|
2020-10-11 12:50:04 +00:00
|
|
|
"config"
|
|
|
|
"configurator"
|
2021-06-28 23:13:55 +00:00
|
|
|
"control4"
|
2021-03-09 03:18:52 +00:00
|
|
|
"conversation"
|
2021-06-28 23:13:55 +00:00
|
|
|
"coolmaster"
|
2021-05-20 23:08:51 +00:00
|
|
|
"coronavirus"
|
2021-02-05 17:12:51 +00:00
|
|
|
"counter"
|
2021-03-09 03:18:52 +00:00
|
|
|
"cover"
|
2021-05-20 23:08:51 +00:00
|
|
|
"daikin"
|
|
|
|
"darksky"
|
|
|
|
"datadog"
|
2021-03-23 19:22:30 +00:00
|
|
|
"deconz"
|
2020-10-11 12:50:04 +00:00
|
|
|
"default_config"
|
|
|
|
"demo"
|
2021-05-20 23:08:51 +00:00
|
|
|
"denonavr"
|
2021-03-09 03:18:52 +00:00
|
|
|
"derivative"
|
|
|
|
"device_automation"
|
|
|
|
"device_sun_light_trigger"
|
|
|
|
"device_tracker"
|
2021-04-05 15:23:46 +00:00
|
|
|
"devolo_home_control"
|
2021-05-20 23:08:51 +00:00
|
|
|
"dexcom"
|
2021-02-05 17:12:51 +00:00
|
|
|
"dhcp"
|
2021-05-20 23:08:51 +00:00
|
|
|
"dialogflow"
|
2021-06-28 23:13:55 +00:00
|
|
|
"directv"
|
2020-10-11 12:50:04 +00:00
|
|
|
"discovery"
|
2021-06-28 23:13:55 +00:00
|
|
|
"doorbird"
|
2021-04-22 02:08:21 +00:00
|
|
|
"dsmr"
|
2021-05-20 23:08:51 +00:00
|
|
|
"dte_energy_bridge"
|
|
|
|
"duckdns"
|
2021-06-28 23:13:55 +00:00
|
|
|
"dunehd"
|
2021-05-20 23:08:51 +00:00
|
|
|
"dyson"
|
|
|
|
"eafm"
|
2021-06-28 23:13:55 +00:00
|
|
|
"ecobee"
|
2021-04-12 18:23:04 +00:00
|
|
|
"econet"
|
2021-06-28 23:13:55 +00:00
|
|
|
"ee_brightbox"
|
2021-12-06 16:07:01 +00:00
|
|
|
"efergy"
|
2021-06-28 23:13:55 +00:00
|
|
|
"elgato"
|
2021-10-01 09:20:50 +00:00
|
|
|
"elkm1"
|
2021-05-20 23:08:51 +00:00
|
|
|
"emonitor"
|
2021-03-09 03:18:52 +00:00
|
|
|
"emulated_hue"
|
2021-06-28 23:13:55 +00:00
|
|
|
"emulated_kasa"
|
|
|
|
"emulated_roku"
|
|
|
|
"enocean"
|
2021-05-28 09:39:13 +00:00
|
|
|
"enphase_envoy"
|
2021-06-28 23:13:55 +00:00
|
|
|
"epson"
|
2021-03-09 03:18:52 +00:00
|
|
|
"esphome"
|
2021-05-20 23:08:51 +00:00
|
|
|
"everlights"
|
|
|
|
"ezviz"
|
2021-03-09 03:18:52 +00:00
|
|
|
"faa_delays"
|
2021-05-20 23:08:51 +00:00
|
|
|
"facebook"
|
|
|
|
"facebox"
|
|
|
|
"fail2ban"
|
|
|
|
"fan"
|
|
|
|
"feedreader"
|
2021-03-09 03:18:52 +00:00
|
|
|
"ffmpeg"
|
2021-05-20 23:08:51 +00:00
|
|
|
"fido"
|
2021-03-09 03:18:52 +00:00
|
|
|
"file"
|
|
|
|
"filesize"
|
|
|
|
"filter"
|
2021-06-28 23:13:55 +00:00
|
|
|
"fireservicerota"
|
2021-05-20 23:08:51 +00:00
|
|
|
"firmata"
|
2021-10-01 09:20:50 +00:00
|
|
|
"fjaraskupan"
|
2021-06-28 23:13:55 +00:00
|
|
|
"flick_electric"
|
2021-09-26 12:46:18 +00:00
|
|
|
"flipr"
|
2021-05-20 23:08:51 +00:00
|
|
|
"flo"
|
|
|
|
"flume"
|
|
|
|
"flunearyou"
|
2021-03-09 03:18:52 +00:00
|
|
|
"flux"
|
|
|
|
"folder"
|
|
|
|
"folder_watcher"
|
2021-06-28 23:13:55 +00:00
|
|
|
"foobot"
|
|
|
|
"foscam"
|
2021-04-05 15:23:46 +00:00
|
|
|
"freebox"
|
2021-05-20 23:08:51 +00:00
|
|
|
"freedns"
|
|
|
|
"fritz"
|
2021-03-09 03:18:52 +00:00
|
|
|
"fritzbox"
|
|
|
|
"fritzbox_callmonitor"
|
2020-10-11 12:50:04 +00:00
|
|
|
"frontend"
|
2021-06-28 23:13:55 +00:00
|
|
|
"garages_amsterdam"
|
|
|
|
"gdacs"
|
2021-03-09 03:18:52 +00:00
|
|
|
"generic"
|
|
|
|
"generic_thermostat"
|
|
|
|
"geo_json_events"
|
|
|
|
"geo_location"
|
2021-06-28 23:13:55 +00:00
|
|
|
"geo_rss_events"
|
2021-05-20 23:08:51 +00:00
|
|
|
"geofency"
|
2021-06-28 23:13:55 +00:00
|
|
|
"geonetnz_quakes"
|
|
|
|
"geonetnz_volcano"
|
|
|
|
"gios"
|
2021-05-20 23:08:51 +00:00
|
|
|
"glances"
|
2021-06-28 23:13:55 +00:00
|
|
|
"goalzero"
|
|
|
|
"gogogate2"
|
2021-05-20 23:08:51 +00:00
|
|
|
"google"
|
|
|
|
"google_assistant"
|
|
|
|
"google_domains"
|
|
|
|
"google_pubsub"
|
|
|
|
"google_translate"
|
|
|
|
"google_travel_time"
|
|
|
|
"google_wifi"
|
|
|
|
"gpslogger"
|
|
|
|
"graphite"
|
2021-06-28 23:13:55 +00:00
|
|
|
"gree"
|
2020-10-11 12:50:04 +00:00
|
|
|
"group"
|
2021-06-28 23:13:55 +00:00
|
|
|
"growatt_server"
|
2021-05-20 23:08:51 +00:00
|
|
|
"guardian"
|
2021-06-28 23:13:55 +00:00
|
|
|
"habitica"
|
|
|
|
"hangouts"
|
2021-05-20 23:08:51 +00:00
|
|
|
"harmony"
|
|
|
|
"hassio"
|
2021-03-09 03:18:52 +00:00
|
|
|
"hddtemp"
|
2021-06-28 23:13:55 +00:00
|
|
|
"heos"
|
|
|
|
"here_travel_time"
|
|
|
|
"hisense_aehw4a1"
|
2020-10-11 12:50:04 +00:00
|
|
|
"history"
|
2021-03-09 03:18:52 +00:00
|
|
|
"history_stats"
|
2021-06-28 23:13:55 +00:00
|
|
|
"hive"
|
|
|
|
"hlk_sw16"
|
2021-04-25 03:57:28 +00:00
|
|
|
"home_connect"
|
2021-04-08 16:26:57 +00:00
|
|
|
"home_plus_control"
|
2021-05-20 23:08:51 +00:00
|
|
|
"homeassistant"
|
2021-08-08 23:34:03 +00:00
|
|
|
# disable homekit tests because they fail in the network component
|
|
|
|
#"homekit"
|
2021-03-09 03:18:52 +00:00
|
|
|
"homekit_controller"
|
2021-04-05 15:23:46 +00:00
|
|
|
"homematic"
|
2021-04-12 18:23:04 +00:00
|
|
|
"homematicip_cloud"
|
2021-06-28 23:13:55 +00:00
|
|
|
"honeywell"
|
2021-03-09 03:18:52 +00:00
|
|
|
"html5"
|
2020-10-11 12:50:04 +00:00
|
|
|
"http"
|
2021-06-28 23:13:55 +00:00
|
|
|
"huawei_lte"
|
2021-02-05 17:12:51 +00:00
|
|
|
"hue"
|
2021-06-28 23:13:55 +00:00
|
|
|
"huisbaasje"
|
2021-05-20 23:08:51 +00:00
|
|
|
"humidifier"
|
2021-09-26 12:46:18 +00:00
|
|
|
"hunterdouglas_powerview"
|
2021-06-28 23:13:55 +00:00
|
|
|
"hvv_departures"
|
2021-04-22 02:08:21 +00:00
|
|
|
"hyperion"
|
2021-05-20 23:08:51 +00:00
|
|
|
"ialarm"
|
2021-03-23 19:22:30 +00:00
|
|
|
"iaqualink"
|
2021-05-20 23:08:51 +00:00
|
|
|
"icloud"
|
2021-03-09 03:18:52 +00:00
|
|
|
"ifttt"
|
2021-06-28 23:13:55 +00:00
|
|
|
"ign_sismologia"
|
2021-03-09 03:18:52 +00:00
|
|
|
"image"
|
|
|
|
"image_processing"
|
2021-05-20 23:08:51 +00:00
|
|
|
"imap_email_content"
|
2021-03-09 03:18:52 +00:00
|
|
|
"influxdb"
|
2020-10-11 12:50:04 +00:00
|
|
|
"input_boolean"
|
|
|
|
"input_datetime"
|
|
|
|
"input_number"
|
|
|
|
"input_select"
|
2021-05-20 23:08:51 +00:00
|
|
|
"input_text"
|
|
|
|
"insteon"
|
|
|
|
"integration"
|
2021-03-09 03:18:52 +00:00
|
|
|
"intent"
|
|
|
|
"intent_script"
|
2021-05-20 23:08:51 +00:00
|
|
|
"ios"
|
2021-06-28 23:13:55 +00:00
|
|
|
"ipma"
|
2021-03-09 03:18:52 +00:00
|
|
|
"ipp"
|
2021-05-20 23:08:51 +00:00
|
|
|
"iqvia"
|
|
|
|
"islamic_prayer_times"
|
2021-06-28 23:13:55 +00:00
|
|
|
"isy994"
|
|
|
|
"izone"
|
2021-05-20 23:08:51 +00:00
|
|
|
"jewish_calendar"
|
2021-06-28 23:13:55 +00:00
|
|
|
"juicenet"
|
|
|
|
"keenetic_ndms2"
|
2021-05-20 23:08:51 +00:00
|
|
|
"kira"
|
2021-03-09 03:18:52 +00:00
|
|
|
"kmtronic"
|
2021-04-25 03:57:28 +00:00
|
|
|
"knx"
|
2021-04-12 18:23:04 +00:00
|
|
|
"kodi"
|
2021-06-28 23:13:55 +00:00
|
|
|
"konnected"
|
|
|
|
"kraken"
|
|
|
|
"kulersky"
|
2021-05-20 23:08:51 +00:00
|
|
|
"lastfm"
|
|
|
|
"lcn"
|
2021-03-09 03:18:52 +00:00
|
|
|
"light"
|
2021-04-08 16:26:57 +00:00
|
|
|
"litterrobot"
|
2021-03-09 03:18:52 +00:00
|
|
|
"local_file"
|
|
|
|
"local_ip"
|
2021-05-20 23:08:51 +00:00
|
|
|
"locative"
|
2021-03-09 03:18:52 +00:00
|
|
|
"lock"
|
2020-10-11 12:50:04 +00:00
|
|
|
"logbook"
|
2021-03-09 03:18:52 +00:00
|
|
|
"logentries"
|
2020-10-11 12:50:04 +00:00
|
|
|
"logger"
|
2021-05-20 23:08:51 +00:00
|
|
|
"london_air"
|
2021-03-09 03:18:52 +00:00
|
|
|
"lovelace"
|
2021-05-20 23:08:51 +00:00
|
|
|
"luftdaten"
|
2021-04-12 18:23:04 +00:00
|
|
|
"lutron_caseta"
|
2021-05-20 23:08:51 +00:00
|
|
|
"lyric"
|
|
|
|
"mailbox"
|
2021-03-09 03:18:52 +00:00
|
|
|
"manual"
|
|
|
|
"manual_mqtt"
|
2021-09-23 15:35:13 +00:00
|
|
|
"maxcube"
|
2021-03-09 03:18:52 +00:00
|
|
|
"mazda"
|
|
|
|
"media_player"
|
2020-10-11 12:50:04 +00:00
|
|
|
"media_source"
|
2021-05-20 23:08:51 +00:00
|
|
|
"meraki"
|
2021-03-09 03:18:52 +00:00
|
|
|
"met"
|
2021-05-20 23:08:51 +00:00
|
|
|
"met_eireann"
|
2021-06-28 23:13:55 +00:00
|
|
|
"meteoclimatic"
|
|
|
|
"mhz19"
|
2021-05-20 23:08:51 +00:00
|
|
|
"microsoft_face"
|
|
|
|
"microsoft_face_detect"
|
|
|
|
"microsoft_face_identify"
|
|
|
|
"mikrotik"
|
2021-06-28 23:13:55 +00:00
|
|
|
"mill"
|
2021-05-20 23:08:51 +00:00
|
|
|
"min_max"
|
2021-04-05 15:23:46 +00:00
|
|
|
"minecraft_server"
|
2021-05-20 23:08:51 +00:00
|
|
|
"minio"
|
2020-10-11 12:50:04 +00:00
|
|
|
"mobile_app"
|
2021-03-09 03:18:52 +00:00
|
|
|
"modbus"
|
2021-05-20 23:08:51 +00:00
|
|
|
"mold_indicator"
|
2021-03-09 03:18:52 +00:00
|
|
|
"moon"
|
2021-12-06 16:07:01 +00:00
|
|
|
"motion_blinds"
|
2021-05-20 23:08:51 +00:00
|
|
|
"motioneye"
|
2021-03-09 03:18:52 +00:00
|
|
|
"mqtt"
|
|
|
|
"mqtt_eventstream"
|
|
|
|
"mqtt_json"
|
|
|
|
"mqtt_room"
|
|
|
|
"mqtt_statestream"
|
|
|
|
"mullvad"
|
2021-05-20 23:08:51 +00:00
|
|
|
"mutesync"
|
|
|
|
"my"
|
|
|
|
"myq"
|
|
|
|
"mysensors"
|
2021-10-01 09:20:50 +00:00
|
|
|
"mythicbeastsdns"
|
2021-06-28 23:13:55 +00:00
|
|
|
"nam"
|
2021-05-20 23:08:51 +00:00
|
|
|
"namecheapdns"
|
|
|
|
"neato"
|
2021-12-06 16:07:01 +00:00
|
|
|
"ness_alarm"
|
|
|
|
"nest"
|
2021-05-20 23:08:51 +00:00
|
|
|
"netatmo"
|
2021-04-13 19:44:15 +00:00
|
|
|
"nexia"
|
2021-12-06 16:07:01 +00:00
|
|
|
"nightscout"
|
2021-05-20 23:08:51 +00:00
|
|
|
"no_ip"
|
2021-03-09 03:18:52 +00:00
|
|
|
"notify"
|
2021-03-23 19:22:30 +00:00
|
|
|
"notion"
|
2021-06-28 23:13:55 +00:00
|
|
|
"nsw_rural_fire_service_feed"
|
2021-05-20 23:08:51 +00:00
|
|
|
"nuki"
|
2021-03-09 03:18:52 +00:00
|
|
|
"number"
|
2021-05-20 23:08:51 +00:00
|
|
|
"nws"
|
2021-04-26 19:14:03 +00:00
|
|
|
"nx584"
|
2021-04-12 18:23:04 +00:00
|
|
|
"omnilogic"
|
2021-05-20 23:08:51 +00:00
|
|
|
"onboarding"
|
2021-04-25 03:57:28 +00:00
|
|
|
"ondilo_ico"
|
2021-05-20 23:08:51 +00:00
|
|
|
"openalpr_cloud"
|
|
|
|
"openalpr_local"
|
2021-04-25 03:57:28 +00:00
|
|
|
"openerz"
|
2021-05-20 23:08:51 +00:00
|
|
|
"openhardwaremonitor"
|
2021-05-03 20:48:10 +00:00
|
|
|
"opentherm_gw"
|
2021-05-20 23:08:51 +00:00
|
|
|
"openuv"
|
|
|
|
"openweathermap"
|
|
|
|
"opnsense"
|
|
|
|
"ovo_energy"
|
|
|
|
"owntracks"
|
2021-03-09 03:18:52 +00:00
|
|
|
"ozw"
|
2021-09-26 12:46:18 +00:00
|
|
|
"p1_monitor"
|
2021-03-09 03:18:52 +00:00
|
|
|
"panel_custom"
|
|
|
|
"panel_iframe"
|
|
|
|
"persistent_notification"
|
2020-10-11 12:50:04 +00:00
|
|
|
"person"
|
2021-05-20 23:08:51 +00:00
|
|
|
"philips_js"
|
|
|
|
"pi_hole"
|
|
|
|
"picnic"
|
|
|
|
"ping"
|
2021-03-09 03:18:52 +00:00
|
|
|
"plaato"
|
2021-05-20 23:08:51 +00:00
|
|
|
"plant"
|
|
|
|
"plex"
|
|
|
|
"plugwise"
|
2021-07-03 03:11:41 +00:00
|
|
|
"point"
|
2021-05-20 23:08:51 +00:00
|
|
|
"poolsense"
|
|
|
|
"profiler"
|
2021-03-09 03:18:52 +00:00
|
|
|
"prometheus"
|
|
|
|
"proximity"
|
|
|
|
"push"
|
2021-05-20 23:08:51 +00:00
|
|
|
"pushbullet"
|
|
|
|
"pvpc_hourly_pricing"
|
2021-03-09 03:18:52 +00:00
|
|
|
"python_script"
|
2021-07-03 03:11:41 +00:00
|
|
|
"qld_bushfire"
|
2021-05-20 23:08:51 +00:00
|
|
|
"rachio"
|
|
|
|
"radarr"
|
|
|
|
"rainmachine"
|
2021-03-09 03:18:52 +00:00
|
|
|
"random"
|
2021-05-20 23:08:51 +00:00
|
|
|
"recollect_waste"
|
2021-03-09 03:18:52 +00:00
|
|
|
"recorder"
|
2021-05-20 23:08:51 +00:00
|
|
|
"reddit"
|
|
|
|
"remote"
|
2021-09-26 12:46:18 +00:00
|
|
|
"renault"
|
2021-03-09 03:18:52 +00:00
|
|
|
"rest"
|
|
|
|
"rest_command"
|
2021-06-28 23:13:55 +00:00
|
|
|
"rflink"
|
2021-07-03 03:11:41 +00:00
|
|
|
"rfxtrx"
|
2021-05-20 23:08:51 +00:00
|
|
|
"ring"
|
|
|
|
"risco"
|
2021-03-09 03:18:52 +00:00
|
|
|
"rituals_perfume_genie"
|
|
|
|
"rmvtransport"
|
2021-04-25 03:57:28 +00:00
|
|
|
"roku"
|
2021-05-20 23:08:51 +00:00
|
|
|
"roomba"
|
2021-05-29 03:34:57 +00:00
|
|
|
"roon"
|
2021-03-09 03:18:52 +00:00
|
|
|
"rss_feed_template"
|
2021-04-12 18:23:04 +00:00
|
|
|
"ruckus_unleashed"
|
2021-03-09 03:18:52 +00:00
|
|
|
"safe_mode"
|
2021-05-20 23:08:51 +00:00
|
|
|
"samsungtv"
|
2020-10-11 12:50:04 +00:00
|
|
|
"scene"
|
2021-04-08 16:26:57 +00:00
|
|
|
"screenlogic"
|
2020-10-11 12:50:04 +00:00
|
|
|
"script"
|
2021-03-09 03:18:52 +00:00
|
|
|
"search"
|
2021-05-20 23:08:51 +00:00
|
|
|
"season"
|
2021-06-28 23:13:55 +00:00
|
|
|
"sense"
|
2021-05-20 23:08:51 +00:00
|
|
|
"sensor"
|
|
|
|
"sentry"
|
|
|
|
"sharkiq"
|
2020-10-11 12:50:04 +00:00
|
|
|
"shell_command"
|
2021-05-20 23:08:51 +00:00
|
|
|
"shelly"
|
2021-03-09 03:18:52 +00:00
|
|
|
"shopping_list"
|
2021-06-28 23:13:55 +00:00
|
|
|
"sia"
|
2021-05-20 23:08:51 +00:00
|
|
|
"sigfox"
|
|
|
|
"sighthound"
|
2021-03-23 19:22:30 +00:00
|
|
|
"simplisafe"
|
2021-03-09 03:18:52 +00:00
|
|
|
"simulated"
|
2021-05-20 23:08:51 +00:00
|
|
|
"slack"
|
2021-04-12 18:23:04 +00:00
|
|
|
"sleepiq"
|
2021-03-23 19:22:30 +00:00
|
|
|
"sma"
|
2021-05-20 23:08:51 +00:00
|
|
|
"smappee"
|
2021-07-03 03:11:41 +00:00
|
|
|
"smart_meter_texas"
|
|
|
|
"smarthab"
|
2021-04-25 03:57:28 +00:00
|
|
|
"smartthings"
|
2021-03-09 03:18:52 +00:00
|
|
|
"smarttub"
|
2021-05-20 23:08:51 +00:00
|
|
|
"smhi"
|
2021-03-09 03:18:52 +00:00
|
|
|
"smtp"
|
2021-05-20 23:08:51 +00:00
|
|
|
"snips"
|
2021-03-20 04:20:00 +00:00
|
|
|
"solaredge"
|
2021-05-20 23:08:51 +00:00
|
|
|
"soma"
|
|
|
|
"somfy"
|
2021-07-03 03:11:41 +00:00
|
|
|
"somfy_mylink"
|
|
|
|
"sonarr"
|
|
|
|
"songpal"
|
2021-07-24 12:14:16 +00:00
|
|
|
# disable sonos components test because they rely on ssdp, which doesn't work in our sandbox
|
|
|
|
# "sonos"
|
2021-05-20 23:08:51 +00:00
|
|
|
"soundtouch"
|
|
|
|
"spaceapi"
|
2021-09-26 12:46:18 +00:00
|
|
|
"spc"
|
2021-05-20 23:08:51 +00:00
|
|
|
"speedtestdotnet"
|
2021-06-28 23:13:55 +00:00
|
|
|
"spider"
|
2021-04-05 15:23:46 +00:00
|
|
|
"spotify"
|
2021-03-09 03:18:52 +00:00
|
|
|
"sql"
|
2021-05-20 23:08:51 +00:00
|
|
|
"squeezebox"
|
2021-06-28 23:13:55 +00:00
|
|
|
"srp_energy"
|
2020-10-11 12:50:04 +00:00
|
|
|
"ssdp"
|
2021-06-28 23:13:55 +00:00
|
|
|
"starline"
|
2021-05-20 23:08:51 +00:00
|
|
|
"startca"
|
|
|
|
"statistics"
|
|
|
|
"statsd"
|
2021-03-09 03:18:52 +00:00
|
|
|
"stream"
|
2021-05-20 23:08:51 +00:00
|
|
|
"stt"
|
2021-03-23 19:22:30 +00:00
|
|
|
"subaru"
|
2020-10-11 12:50:04 +00:00
|
|
|
"sun"
|
2021-05-20 23:08:51 +00:00
|
|
|
"surepetcare"
|
2021-03-09 03:18:52 +00:00
|
|
|
"switch"
|
2021-05-20 23:08:51 +00:00
|
|
|
"switcher_kis"
|
2021-06-28 23:13:55 +00:00
|
|
|
"syncthing"
|
|
|
|
"syncthru"
|
2021-10-28 06:52:43 +00:00
|
|
|
"synology_dsm"
|
2020-10-11 12:50:04 +00:00
|
|
|
"system_health"
|
|
|
|
"system_log"
|
2021-05-20 23:08:51 +00:00
|
|
|
"tado"
|
2020-10-11 12:50:04 +00:00
|
|
|
"tag"
|
2021-03-09 03:18:52 +00:00
|
|
|
"tasmota"
|
|
|
|
"tcp"
|
2021-05-20 23:08:51 +00:00
|
|
|
"telegram"
|
|
|
|
"tellduslive"
|
2021-03-09 03:18:52 +00:00
|
|
|
"template"
|
2021-06-28 23:13:55 +00:00
|
|
|
# disable tesla comonent tests while typer is incompatible with click>=8.0
|
|
|
|
# "tesla"
|
2021-03-09 03:18:52 +00:00
|
|
|
"threshold"
|
2021-06-28 23:13:55 +00:00
|
|
|
"tibber"
|
2021-05-20 23:08:51 +00:00
|
|
|
"tile"
|
2021-03-09 03:18:52 +00:00
|
|
|
"time_date"
|
2021-02-05 17:12:51 +00:00
|
|
|
"timer"
|
2021-03-09 03:18:52 +00:00
|
|
|
"tod"
|
2021-05-20 23:08:51 +00:00
|
|
|
"tomato"
|
|
|
|
"toon"
|
2021-06-28 23:13:55 +00:00
|
|
|
"totalconnect"
|
2021-05-20 23:08:51 +00:00
|
|
|
"tplink"
|
2021-12-06 16:07:01 +00:00
|
|
|
"traccar"
|
2021-04-08 16:26:57 +00:00
|
|
|
"trace"
|
2021-06-28 23:13:55 +00:00
|
|
|
"tradfri"
|
2021-05-20 23:08:51 +00:00
|
|
|
"transmission"
|
2021-10-07 14:46:35 +00:00
|
|
|
"transport_nsw"
|
2021-05-20 23:08:51 +00:00
|
|
|
"trend"
|
2021-03-09 03:18:52 +00:00
|
|
|
"tts"
|
2021-05-20 23:08:51 +00:00
|
|
|
"tuya"
|
|
|
|
"twentemilieu"
|
|
|
|
"twilio"
|
|
|
|
"twinkly"
|
|
|
|
"twitch"
|
|
|
|
"uk_transport"
|
|
|
|
"unifi"
|
|
|
|
"unifi_direct"
|
2021-03-09 03:18:52 +00:00
|
|
|
"universal"
|
2021-06-28 23:13:55 +00:00
|
|
|
"upb"
|
|
|
|
"upcloud"
|
2021-03-09 03:18:52 +00:00
|
|
|
"updater"
|
2021-07-24 12:14:16 +00:00
|
|
|
# disabled, because it tries to join a multicast group and fails to find a usable network interface
|
|
|
|
# "upnp"
|
2021-03-09 03:18:52 +00:00
|
|
|
"uptime"
|
2021-12-06 16:07:01 +00:00
|
|
|
"uptimerobot"
|
2021-05-20 23:08:51 +00:00
|
|
|
"usgs_earthquakes_feed"
|
|
|
|
"utility_meter"
|
|
|
|
"uvc"
|
2021-03-09 03:18:52 +00:00
|
|
|
"vacuum"
|
2021-05-20 23:08:51 +00:00
|
|
|
"velbus"
|
2021-06-28 23:13:55 +00:00
|
|
|
"venstar"
|
2021-05-20 23:08:51 +00:00
|
|
|
"vera"
|
2021-04-05 15:23:46 +00:00
|
|
|
"verisure"
|
2021-05-20 23:08:51 +00:00
|
|
|
"version"
|
|
|
|
"vesync"
|
2021-06-28 23:13:55 +00:00
|
|
|
"vilfo"
|
2021-05-20 23:08:51 +00:00
|
|
|
"vizio"
|
2021-12-06 16:07:01 +00:00
|
|
|
"vlc_telnet"
|
2021-05-20 23:08:51 +00:00
|
|
|
"voicerss"
|
|
|
|
"volumio"
|
2021-07-24 12:14:16 +00:00
|
|
|
# disabled, becaused AttributeError: <class 'vultr.vultr.Vultr'> does not have the attribute 'server_list'
|
|
|
|
# "vultr"
|
2021-05-20 23:08:51 +00:00
|
|
|
"wake_on_lan"
|
2021-06-28 23:13:55 +00:00
|
|
|
"wallbox"
|
2021-05-20 23:08:51 +00:00
|
|
|
"water_heater"
|
|
|
|
"waze_travel_time"
|
2021-03-09 03:18:52 +00:00
|
|
|
"weather"
|
2021-02-05 17:12:51 +00:00
|
|
|
"webhook"
|
2021-05-20 23:08:51 +00:00
|
|
|
"webostv"
|
2020-10-11 12:50:04 +00:00
|
|
|
"websocket_api"
|
2021-04-12 18:23:04 +00:00
|
|
|
"wemo"
|
2021-05-20 23:08:51 +00:00
|
|
|
"wiffi"
|
|
|
|
"wilight"
|
2021-03-09 03:18:52 +00:00
|
|
|
"wled"
|
|
|
|
"workday"
|
|
|
|
"worldclock"
|
2021-05-20 23:08:51 +00:00
|
|
|
"wsdot"
|
2021-06-28 23:13:55 +00:00
|
|
|
"xbox"
|
2021-05-20 23:08:51 +00:00
|
|
|
"xiaomi"
|
|
|
|
"xiaomi_aqara"
|
|
|
|
"xiaomi_miio"
|
|
|
|
"yamaha"
|
|
|
|
"yandex_transport"
|
|
|
|
"yandextts"
|
2021-04-13 19:44:15 +00:00
|
|
|
"yeelight"
|
2021-09-18 10:52:07 +00:00
|
|
|
"youless"
|
2021-07-24 12:14:16 +00:00
|
|
|
# disabled, because it tries to join a multicast group and fails to find a usable network interface
|
|
|
|
# "zeroconf"
|
2021-05-20 23:08:51 +00:00
|
|
|
"zerproc"
|
2021-03-09 03:18:52 +00:00
|
|
|
"zha"
|
2021-05-20 23:08:51 +00:00
|
|
|
"zodiac"
|
2020-10-11 12:50:04 +00:00
|
|
|
"zone"
|
2021-02-05 17:12:51 +00:00
|
|
|
"zwave"
|
2021-04-25 03:57:28 +00:00
|
|
|
"zwave_js"
|
2021-05-20 23:08:51 +00:00
|
|
|
] ++ lib.optionals (builtins.any (s: s == stdenv.hostPlatform.system) debugpy.meta.platforms) [
|
|
|
|
"debugpy"
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2020-10-11 12:50:04 +00:00
|
|
|
pytestFlagsArray = [
|
2021-05-20 23:08:51 +00:00
|
|
|
# parallelize test run
|
2021-09-18 10:52:07 +00:00
|
|
|
"--numprocesses $NIX_BUILD_CORES"
|
2021-05-20 23:08:51 +00:00
|
|
|
# assign tests grouped by file to workers
|
|
|
|
"--dist loadfile"
|
2021-03-09 03:18:52 +00:00
|
|
|
# retry racy tests that end in "RuntimeError: Event loop is closed"
|
|
|
|
"--reruns 3"
|
|
|
|
"--only-rerun RuntimeError"
|
2021-05-20 23:08:51 +00:00
|
|
|
# enable full variable printing on error
|
|
|
|
"--showlocals"
|
2021-06-28 23:13:55 +00:00
|
|
|
# here_travel_time/test_sensor.py: Tries to access HERE API: herepy.error.HEREError: Error occured on __get
|
|
|
|
"--deselect tests/components/here_travel_time/test_sensor.py::test_invalid_credentials"
|
2021-04-08 16:26:57 +00:00
|
|
|
# screenlogic/test_config_flow.py: Tries to send out UDP broadcasts
|
|
|
|
"--deselect tests/components/screenlogic/test_config_flow.py::test_form_cannot_connect"
|
2021-06-28 23:13:55 +00:00
|
|
|
# abode/test_camera.py: Race condition in pickle file creationg
|
|
|
|
"--deselect tests/components/abode/test_camera.py::test_camera_off"
|
2021-05-20 23:08:51 +00:00
|
|
|
# asuswrt/test_config_flow.py: Sandbox network limitations, fails with unexpected error
|
|
|
|
"--deselect tests/components/asuswrt/test_config_flow.py::test_on_connect_failed"
|
|
|
|
# shelly/test_config_flow.py: Tries to join multicast group
|
|
|
|
"--deselect tests/components/shelly/test_config_flow.py::test_form"
|
|
|
|
"--deselect tests/components/shelly/test_config_flow.py::test_title_without_name"
|
|
|
|
"--deselect tests/components/shelly/test_config_flow.py::test_form_auth"
|
|
|
|
"--deselect tests/components/shelly/test_config_flow.py::test_form_errors_test_connection"
|
|
|
|
"--deselect tests/components/shelly/test_config_flow.py::test_user_setup_ignored_device"
|
|
|
|
"--deselect tests/components/shelly/test_config_flow.py::test_form_auth_errors_test_connection"
|
|
|
|
"--deselect tests/components/shelly/test_config_flow.py::test_form_auth_errors_test_connection"
|
|
|
|
"--deselect tests/components/shelly/test_config_flow.py::test_form_auth_errors_test_connection"
|
|
|
|
"--deselect tests/components/shelly/test_config_flow.py::test_zeroconf"
|
|
|
|
"--deselect tests/components/shelly/test_config_flow.py::test_zeroconf_sleeping_device"
|
|
|
|
"--deselect tests/components/shelly/test_config_flow.py::test_zeroconf_sleeping_device_error"
|
|
|
|
"--deselect tests/components/shelly/test_config_flow.py::test_zeroconf_sleeping_device_error"
|
|
|
|
"--deselect tests/components/shelly/test_config_flow.py::test_zeroconf_require_auth"
|
2021-05-28 09:39:13 +00:00
|
|
|
# prometheus/test_init.py: Spurious AssertionError regarding humidifier_target_humidity_percent metric
|
|
|
|
"--deselect tests/components/prometheus/test_init.py::test_view"
|
2021-06-28 23:13:55 +00:00
|
|
|
# smhi/test_init.py: Tries to fetch data from the network: socket.gaierror: [Errno -2] Name or service not known
|
|
|
|
"--deselect tests/components/smhi/test_init.py::test_remove_entry"
|
|
|
|
# wallbox/test_config_flow.py: Tries to connect to api.wall-box.cim: Failed to establish a new connection: [Errno -2] Name or service not known
|
|
|
|
"--deselect tests/components/wallbox/test_config_flow.py::test_form_invalid_auth"
|
|
|
|
"--deselect tests/components/wallbox/test_config_flow.py::test_form_cannot_connect"
|
2021-08-08 23:34:03 +00:00
|
|
|
# default_config/test_init.py: Tries to check for updates and fails ungracefully without network access
|
2021-07-24 12:14:16 +00:00
|
|
|
"--deselect tests/components/default_config/test_init.py::test_setup"
|
2021-08-08 23:34:03 +00:00
|
|
|
# local_ip/test_{init,config_flow}.py: tries to lookup a route towards a multicast address and fails
|
|
|
|
"--deselect tests/components/local_ip/test_init.py::test_basic_setup"
|
|
|
|
"--deselect tests/components/local_ip/test_config_flow.py::test_config_flow"
|
|
|
|
# netatmo/test_select.py: NoneType object has no attribute state
|
|
|
|
"--deselect tests/components/netatmo/test_select.py::test_select_schedule_thermostats"
|
2021-09-18 10:52:07 +00:00
|
|
|
# wemo/test_sensor.py: KeyError for various power attributes
|
|
|
|
"--deselect tests/components/wemo/test_sensor.py::TestInsightTodayEnergy::test_state_unavailable"
|
|
|
|
"--deselect tests/components/wemo/test_sensor.py::TestInsightCurrentPower::test_state_unavailable"
|
2021-08-08 23:34:03 +00:00
|
|
|
# helpers/test_system_info.py: AssertionError: assert 'Unknown' == 'Home Assistant Container'
|
|
|
|
"--deselect tests/helpers/test_system_info.py::test_container_installationtype"
|
2021-05-20 23:08:51 +00:00
|
|
|
# tests are located in tests/
|
|
|
|
"tests"
|
2021-03-09 03:18:52 +00:00
|
|
|
# dynamically add packages required for component tests
|
2020-10-11 12:50:04 +00:00
|
|
|
] ++ map (component: "tests/components/" + component) componentTests;
|
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
disabledTestPaths = [
|
|
|
|
# don't bulk test all components
|
|
|
|
"tests/components"
|
|
|
|
# pyotp since v2.4.0 complains about the short mock keys, hass pins v2.3.0
|
|
|
|
"tests/auth/mfa_modules/test_notify.py"
|
2021-10-07 14:46:35 +00:00
|
|
|
# emulated_hue/test_upnp.py: Tries to establish the public ipv4 address
|
|
|
|
"tests/components/emulated_hue/test_upnp.py"
|
2021-12-06 16:07:01 +00:00
|
|
|
# tado/test_{climate,water_heater}.py: Tries to connect to my.tado.com
|
2021-10-14 00:43:12 +00:00
|
|
|
"tests/components/tado/test_climate.py"
|
2021-12-06 16:07:01 +00:00
|
|
|
"tests/components/tado/test_water_heater.py"
|
2021-03-09 03:18:52 +00:00
|
|
|
];
|
|
|
|
|
2020-10-11 12:50:04 +00:00
|
|
|
disabledTests = [
|
2021-02-13 14:23:35 +00:00
|
|
|
# AssertionError: assert 1 == 0
|
2021-03-09 03:18:52 +00:00
|
|
|
"test_error_posted_as_event"
|
2021-02-13 14:23:35 +00:00
|
|
|
"test_merge"
|
|
|
|
# ModuleNotFoundError: No module named 'pyqwikswitch'
|
|
|
|
"test_merge_id_schema"
|
2021-01-09 10:05:03 +00:00
|
|
|
# keyring.errors.NoKeyringError: No recommended backend was available.
|
|
|
|
"test_secrets_from_unrelated_fails"
|
|
|
|
"test_secrets_credstash"
|
2021-03-09 03:18:52 +00:00
|
|
|
# generic/test_camera.py: AssertionError: 500 == 200
|
|
|
|
"test_fetching_without_verify_ssl"
|
|
|
|
"test_fetching_url_with_verify_ssl"
|
2021-04-08 16:26:57 +00:00
|
|
|
# util/test_package.py: AssertionError on package.is_installed('homeassistant>=999.999.999')
|
|
|
|
"test_check_package_version_does_not_match"
|
2021-05-20 23:08:51 +00:00
|
|
|
# homeassistant/util/thread.py:51: SystemError
|
|
|
|
"test_executor_shutdown_can_interrupt_threads"
|
|
|
|
# {'theme_color': '#03A9F4'} != {'theme_color': 'blue'}
|
|
|
|
"test_webhook_handle_get_config"
|
|
|
|
# onboarding tests rpi_power component, for which we are lacking rpi_bad_power library
|
|
|
|
"test_onboarding_core_sets_up_rpi_power"
|
|
|
|
"test_onboarding_core_no_rpi_power"
|
2021-06-28 23:13:55 +00:00
|
|
|
# hue/test_sensor_base.py: Race condition when counting events
|
|
|
|
"test_hue_events"
|
2021-09-26 12:46:18 +00:00
|
|
|
# august/test_lock.py: AssertionError: assert 'unlocked' == 'locked' / assert 'off' == 'on'
|
2021-07-24 12:14:16 +00:00
|
|
|
"test_lock_update_via_pubnub"
|
2021-09-26 12:46:18 +00:00
|
|
|
"test_door_sense_update_via_pubnub"
|
2020-10-11 12:50:04 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
preCheck = ''
|
2021-04-08 16:26:57 +00:00
|
|
|
export HOME="$TEMPDIR"
|
|
|
|
|
2020-10-07 09:15:18 +00:00
|
|
|
# the tests require the existance of a media dir
|
|
|
|
mkdir /build/media
|
2021-04-08 16:26:57 +00:00
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
# put ping binary into PATH, e.g. for wake_on_lan tests
|
|
|
|
export PATH=${inetutils}/bin:$PATH
|
|
|
|
|
2021-04-08 16:26:57 +00:00
|
|
|
# error out when component test directory is missing, otherwise hidden by xdist execution :(
|
|
|
|
for component in ${lib.concatStringsSep " " (map lib.escapeShellArg componentTests)}; do
|
|
|
|
test -d "tests/components/$component" || {
|
|
|
|
>2& echo "ERROR: Tests for component '$component' were enabled, but they do not exist!"
|
|
|
|
exit 1
|
|
|
|
}
|
|
|
|
done
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2020-05-15 21:57:56 +00:00
|
|
|
passthru = {
|
2021-12-06 16:07:01 +00:00
|
|
|
inherit availableComponents extraComponents;
|
2021-06-28 23:13:55 +00:00
|
|
|
python = py;
|
2020-06-15 15:56:04 +00:00
|
|
|
tests = {
|
|
|
|
inherit (nixosTests) home-assistant;
|
|
|
|
};
|
2020-05-15 21:57:56 +00:00
|
|
|
};
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://home-assistant.io/";
|
2020-10-16 20:44:37 +00:00
|
|
|
description = "Open source home automation that puts local control and privacy first";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.asl20;
|
2021-04-08 16:26:57 +00:00
|
|
|
maintainers = teams.home-assistant.members;
|
2021-04-05 15:23:46 +00:00
|
|
|
platforms = platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|