git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #94475 from mweinelt/hass

homeassistant: 0.113.0 -> 0.113.3

commitdf5103333006b02a35caad8e6db898263e8bd72e authorMartin Weinelt <mweinelt@users.noreply.github.com> dateMon 3 Aug 2020, 16:59 (6 years ago) parentdd49aa587d4e12
3 files changed+38−4
pkgs/servers/home-assistant/component-packages.nix+2−2 pkgs/servers/home-assistant/default.nix+3−2 pkgs/servers/home-assistant/fix-flapping-chained-task-logging-test.patch+33
pkgs/servers/home-assistant/component-packages.nix+2−2
@@ -2,7 +2,7 @@
22# Do not edit!
33
44{
5− version = "0.113.0";
5+ version = "0.113.3";
66 components = {
77 "abode" = ps: with ps; [ ]; # missing inputs: abodepy
88 "acer_projector" = ps: with ps; [ pyserial];
@@ -664,7 +664,7 @@
664664 "rocketchat" = ps: with ps; [ ]; # missing inputs: rocketchat-API
665665 "roku" = ps: with ps; [ ]; # missing inputs: rokuecp
666666 "roomba" = ps: with ps; [ ]; # missing inputs: roombapy
667− "route53" = ps: with ps; [ boto3]; # missing inputs: ipify
667+ "route53" = ps: with ps; [ boto3];
668668 "rova" = ps: with ps; [ ]; # missing inputs: rova
669669 "rpi_camera" = ps: with ps; [ ];
670670 "rpi_gpio" = ps: with ps; [ ]; # missing inputs: RPi.GPIO
pkgs/servers/home-assistant/default.nix+3−2
@@ -72,7 +72,7 @@ let
7272 extraBuildInputs = extraPackages py.pkgs;
7373
7474 # Don't forget to run parse-requirements.py after updating
75− hassVersion = "0.113.0";
75+ hassVersion = "0.113.3";
7676
7777in with py.pkgs; buildPythonApplication rec {
7878 pname = "homeassistant";
@@ -82,6 +82,7 @@ in with py.pkgs; buildPythonApplication rec {
8282
8383 patches = [
8484 ./relax-dependencies.patch
85+ ./fix-flapping-chained-task-logging-test.patch
8586 ];
8687
8788 inherit availableComponents;
@@ -91,7 +92,7 @@ in with py.pkgs; buildPythonApplication rec {
9192 owner = "home-assistant";
9293 repo = "core";
9394 rev = version;
94− sha256 = "1yb943wkiawh5p4mj5089qcsjfnwb91ga666qriz32bzpfgrzrna";
95+ sha256 = "1lrllhafjawrghdp81lz1ffdqcj2q0x9ndp11nhi8s9fd8bb4c8j";
9596 };
9697
9798 propagatedBuildInputs = [
pkgs/servers/home-assistant/fix-flapping-chained-task-logging-test.patchnew file+33
@@ -0,0 +1,33 @@
1+From 1d54dafad9968465d995d195f683d8032a5194d1 Mon Sep 17 00:00:00 2001
2+From: "J. Nick Koston" <nick@koston.org>
3+Date: Sun, 2 Aug 2020 23:05:53 +0000
4+Subject: [PATCH] Fix flapping chained task logging test
5+
6+Creating 20 tasks was taking less than 0.0001 seconds which caused
7+the tests to fail. Increase the number of test tasks by two orders
8+of magnitude.
9+---
10+ tests/test_core.py | 4 ++--
11+ 1 file changed, 2 insertions(+), 2 deletions(-)
12+
13+diff --git a/tests/test_core.py b/tests/test_core.py
14+index 12ed00fde2c9..167eda3f6cb4 100644
15+--- a/tests/test_core.py
16++++ b/tests/test_core.py
17+@@ -1436,14 +1436,14 @@ async def test_chained_logging_hits_log_timeout(hass, caplog):
18+ async def _task_chain_1():
19+ nonlocal created
20+ created += 1
21+- if created > 10:
22++ if created > 1000:
23+ return
24+ hass.async_create_task(_task_chain_2())
25+
26+ async def _task_chain_2():
27+ nonlocal created
28+ created += 1
29+- if created > 10:
30++ if created > 1000:
31+ return
32+ hass.async_create_task(_task_chain_1())
33+