!QhvgabMQzwEQeWehhZ:lossy.network

NixOS Home Automation

521 Members
Declarative Home Automation and other Sidequests | https://wiki.nixos.org/wiki/Home_Assistant132 Servers

Load older messages


SenderMessageTime
14 Jun 2021
@etu:semi.socialetuMetrics doesn't have to be built in, if current state of things are exposed, another component can scrape that to build metrics21:41:24
@etu:semi.socialetuThen things can check the metrics component to fire events21:41:47
@robert:funklause.dedotlambdaHow do I mark Home Assistant component tests as online only? Is that something upstream does at all?22:34:59
@hexa:lossy.network@hexa:lossy.networkI thought about adding pytest.mark.network upstream, if they're interested22:36:28
@robert:funklause.dedotlambdaBut you didn't try it yet?22:36:55
@hexa:lossy.network@hexa:lossy.networkno, I did not22:37:10
@hexa:lossy.network@hexa:lossy.networkthis is the kind of thing we need social capital for ๐Ÿค”22:37:47
@hexa:lossy.network@hexa:lossy.networkbecause it is working for them already22:38:00
@hexa:lossy.network@hexa:lossy.networkno added value22:38:07
@robert:funklause.dedotlambdaAnd what about having a big patch just for us that adds these marks everywhere?22:40:16
@robert:funklause.dedotlambdaI guess we should try upstreaming them first.22:40:27
@hexa:lossy.network@hexa:lossy.networktesting them downstream, making sure they're working well, then upstream22:40:48
@hexa:lossy.network@hexa:lossy.networkmake the process painless22:40:53
@robert:funklause.dedotlambda I'm not too invested but if you make a PR upstream, feel free to add test_form_invalid_auth and test_form_cannot_connect from wallbox's tests. 22:43:33
@hexa:lossy.network@hexa:lossy.networkhttps://github.com/NixOS/nixpkgs/pull/12689523:27:30
15 Jun 2021
@zhaofeng:zhaofeng.liZhaofeng LiActually, someone should DM balloob/home_assistant to let them know about the HN thread. I think it's only fair and they don't seem to be aware.01:11:30
@hexa:lossy.network@hexa:lossy.networkI would be surprised if they hadn't discussed that internally yet01:13:06
@hexa:lossy.network@hexa:lossy.networkpretty sure that is what turned the reaction around01:13:47
@hexa:lossy.network@hexa:lossy.networkhttps://nixos.wiki/wiki/index.php?diff=5894&oldid=589202:11:59
@hexa:lossy.network@hexa:lossy.networkfirst draft of a limited support passage02:12:18
@joerg:bethselamin.deMic92 (Old)I won't do anything right now in this matter over the couple next week. I have other priorities right now.07:05:09
@hexa:lossy.network@hexa:lossy.networkhttps://nixos.wiki/wiki/Home_Assistant#Running_a_recent_version_using_an_overlay13:07:54
@hexa:lossy.network@hexa:lossy.networkuntested, but should work13:08:13
@hexa:lossy.network@hexa:lossy.network
         Outdated dependencies         
โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”ณโ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”ณโ”โ”โ”โ”โ”โ”โ”โ”โ”“
โ”ƒ Package       โ”ƒ Current    โ”ƒ Wanted โ”ƒ
โ”กโ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ•‡โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ•‡โ”โ”โ”โ”โ”โ”โ”โ”โ”ฉ
โ”‚ numpy         โ”‚ 1.20.2     โ”‚ 1.20.3 โ”‚
โ”‚ pydroid-ipcam โ”‚ 2021-06-01 โ”‚ 0.8    โ”‚
โ”‚ pyotgw        โ”‚ 2021-03-25 โ”‚ 1.1b1  โ”‚
โ”‚ sqlalchemy    โ”‚ 1.3.23     โ”‚ 1.4.13 โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

13:22:37
@hexa:lossy.network@hexa:lossy.networkI tried to expose the python package set post-overrides in passthru13:22:57
@hexa:lossy.network@hexa:lossy.networkand then use that as the package set checked in parse-requirements.py13:23:09
@hexa:lossy.network@hexa:lossy.network
diff --git a/pkgs/servers/home-assistant/default.nix b/pkgs/servers/home-assistant/default.nix
index c2eae375658..805306a2d9c 100644
--- a/pkgs/servers/home-assistant/default.nix
+++ b/pkgs/servers/home-assistant/default.nix
@@ -799,6 +799,7 @@ in with py.pkgs; buildPythonApplication rec {
     tests = {
       inherit (nixosTests) home-assistant;
     };
+    pythonPackages = py;
   };
 
   meta = with lib; {
diff --git a/pkgs/servers/home-assistant/parse-requirements.py b/pkgs/servers/home-assistant/parse-requirements.py
index 27de7a60f37..1eeb0f1356c 100755
--- a/pkgs/servers/home-assistant/parse-requirements.py
+++ b/pkgs/servers/home-assistant/parse-requirements.py
@@ -32,7 +32,7 @@ from rich.console import Console
 from rich.table import Table
 
 COMPONENT_PREFIX = "homeassistant.components"
-PKG_SET = "python3Packages"
+PKG_SET = "home-assistant.pythonPackages"
 
 # If some requirements are matched by multiple Python packages,
 # the following can be used to choose one of them
13:24:55
@hexa:lossy.network@hexa:lossy.networklooks to be working, but parse-requirements doesn't yet find all packages again13:25:11
@hexa:lossy.network@hexa:lossy.network *
diff --git a/pkgs/servers/home-assistant/default.nix b/pkgs/servers/home-assistant/default.nix
index c2eae375658..805306a2d9c 100644
--- a/pkgs/servers/home-assistant/default.nix
+++ b/pkgs/servers/home-assistant/default.nix
@@ -799,6 +799,7 @@ in with py.pkgs; buildPythonApplication rec {
     tests = {
       inherit (nixosTests) home-assistant;
     };
+    pythonPackages = py.pkgs;
   };
 
   meta = with lib; {
diff --git a/pkgs/servers/home-assistant/parse-requirements.py b/pkgs/servers/home-assistant/parse-requirements.py
index 27de7a60f37..1eeb0f1356c 100755
--- a/pkgs/servers/home-assistant/parse-requirements.py
+++ b/pkgs/servers/home-assistant/parse-requirements.py
@@ -32,7 +32,7 @@ from rich.console import Console
 from rich.table import Table
 
 COMPONENT_PREFIX = "homeassistant.components"
-PKG_SET = "python3Packages"
+PKG_SET = "home-assistant.pythonPackages"
 
 # If some requirements are matched by multiple Python packages,
 # the following can be used to choose one of them
13:26:28
@hexa:lossy.network@hexa:lossy.networknvm, works13:26:45

Show newer messages


Back to Room ListRoom Version: 6