From e48d4535b1756784a47ab95598fbfdcf1da197e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Thu, 1 Feb 2024 00:46:46 +0100 Subject: [PATCH] home-assistant: add qrcode module, expand local offset for radiators --- hosts/home-assistant/default.nix | 4 ++++ ...e-assistant-local_temperature_calibration.diff | 15 +++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 overlays/home-assistant-local_temperature_calibration.diff diff --git a/hosts/home-assistant/default.nix b/hosts/home-assistant/default.nix index 6a645a2a..128ee1ef 100644 --- a/hosts/home-assistant/default.nix +++ b/hosts/home-assistant/default.nix @@ -99,6 +99,9 @@ in ]; ldap.enable = true; package = (pkgs.home-assistant.override { + extraPackages = ps: with ps; [ + pyqrcode # for TOTP qrcode + ]; # those tests take a long(er) time and can't be sped up with pytest-xdist packageOverrides = _: prev: let noTests.doCheck = false; @@ -108,6 +111,7 @@ in }; }).overrideAttrs ({ patches ? [ ], ... }: { patches = patches ++ [ + ../../overlays/home-assistant-local_temperature_calibration.diff ../../overlays/home-assistant-no-cloud.diff ]; diff --git a/overlays/home-assistant-local_temperature_calibration.diff b/overlays/home-assistant-local_temperature_calibration.diff new file mode 100644 index 00000000..6d06c3dd --- /dev/null +++ b/overlays/home-assistant-local_temperature_calibration.diff @@ -0,0 +1,15 @@ +diff --git a/homeassistant/components/zha/number.py b/homeassistant/components/zha/number.py +index 24964d7a15..4c43958f41 100644 +--- a/homeassistant/components/zha/number.py ++++ b/homeassistant/components/zha/number.py +@@ -956,8 +956,8 @@ class ThermostatLocalTempCalibration(ZHANumberConfigurationEntity): + """Local temperature calibration.""" + + _unique_id_suffix = "local_temperature_calibration" +- _attr_native_min_value: float = -2.5 +- _attr_native_max_value: float = 2.5 ++ _attr_native_min_value: float = -5.0 ++ _attr_native_max_value: float = 5.0 + _attr_native_step: float = 0.1 + _attr_multiplier: float = 0.1 + _attribute_name = "local_temperature_calibration"