@@ -57,7 +57,7 @@ let
5757 extraBuildInputs = extraPackages py.pkgs;
5858
5959 # Don't forget to run parse-requirements.py after updating
60− hassVersion = "2021.2.0";
60+ hassVersion = "2021.2.1";
6161
6262in with py.pkgs; buildPythonApplication rec {
6363 pname = "homeassistant";
@@ -76,7 +76,7 @@ in with py.pkgs; buildPythonApplication rec {
7676 owner = "home-assistant";
7777 repo = "core";
7878 rev = version;
79− sha256 = "116aq683wy7sxdbxr43li90irpfbsz0dv8w0r1fghcjpwlj7ihwa";
79+ sha256 = "0a8l23n6j0x1hjcifajgbrip7b4l8xcgxn2wa1lcg27p1cghrv5m";
8080 };
8181
8282 # leave this in, so users don't have to constantly update their downstream patch handling
@@ -101,6 +101,7 @@ in with py.pkgs; buildPythonApplication rec {
101101 astral
102102 async-timeout
103103 attrs
104+ awesomeversion
104105 bcrypt
105106 certifi
106107 ciso8601
@@ -181,30 +182,23 @@ in with py.pkgs; buildPythonApplication rec {
181182
182183 pytestFlagsArray = [
183184 "-n auto"
185+ # assign tests grouped by file to workers
186+ "--dist loadfile"
184187 # don't bulk test all components
185188 "--ignore tests/components"
186− # prone to race conditions due to parallel file access
187− "--ignore tests/test_config.py"
188189 # pyotp since v2.4.0 complains about the short mock keys, hass pins v2.3.0
189190 "--ignore tests/auth/mfa_modules/test_notify.py"
190191 "tests"
191192 ] ++ map (component: "tests/components/" + component) componentTests;
192193
193194 disabledTests = [
194− # AssertionError: assert 'unknown' == 'not_home'
195− "test_device_tracker_not_home"
195+ # AssertionError: assert 1 == 0
196+ "test_merge"
197+ # ModuleNotFoundError: No module named 'pyqwikswitch'
198+ "test_merge_id_schema"
196199 # keyring.errors.NoKeyringError: No recommended backend was available.
197200 "test_secrets_from_unrelated_fails"
198201 "test_secrets_credstash"
199− # AssertionError: Expected 'start' to have been called once. Called 0 times.
200− "test_setup_and_stop"
201− # AssertionError: assert {} == {'test': <ANY...ckage': <ANY>}
202− "test_get_custom_components_internal"
203− # assert 0 == 1 where 0 = len([])
204− "test_error_posted_as_event"
205− # RuntimeError: Event loop is closed
206− "test_config_path"
207− "test_info_endpoint_register_callback_timeout"
208202 ];
209203
210204 preCheck = ''