Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 6450d8c5ca6f
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 3382d93982ee
Choose a head ref
  • 1 commit
  • 2 files changed
  • 1 contributor

Commits on Feb 21, 2019

  1. home-assistant-cli: 0.5.0 -> 0.6.0

    Robert Schütz committed Feb 21, 2019
    Copy the full SHA
    3382d93 View commit details
Showing with 4 additions and 4 deletions.
  1. +2 −2 nixos/tests/home-assistant.nix
  2. +2 −2 pkgs/servers/home-assistant/cli.nix
4 changes: 2 additions & 2 deletions nixos/tests/home-assistant.nix
Original file line number Diff line number Diff line change
@@ -87,8 +87,8 @@ in {
$hass->succeed("curl http://localhost:8123/api/states/binary_sensor.mqtt_binary_sensor -H 'x-ha-access: ${apiPassword}' | grep -qF '\"state\": \"on\"'");
# Toggle a binary sensor using hass-cli
$hass->succeed("${hassCli} --output json entity get binary_sensor.mqtt_binary_sensor | grep -qF '\"state\": \"on\"'");
$hass->succeed("${hassCli} entity edit binary_sensor.mqtt_binary_sensor --json='{\"state\": \"off\"}'");
$hass->succeed("${hassCli} --output json state get binary_sensor.mqtt_binary_sensor | grep -qF '\"state\": \"on\"'");
$hass->succeed("${hassCli} state edit binary_sensor.mqtt_binary_sensor --json='{\"state\": \"off\"}'");
$hass->succeed("curl http://localhost:8123/api/states/binary_sensor.mqtt_binary_sensor -H 'x-ha-access: ${apiPassword}' | grep -qF '\"state\": \"off\"'");
# Print log to ease debugging
4 changes: 2 additions & 2 deletions pkgs/servers/home-assistant/cli.nix
Original file line number Diff line number Diff line change
@@ -2,11 +2,11 @@

python3.pkgs.buildPythonApplication rec {
pname = "homeassistant-cli";
version = "0.5.0";
version = "0.6.0";

src = python3.pkgs.fetchPypi {
inherit pname version;
sha256 = "4ad137d336508ab74840a34b3cc488ad884cc75285f5d7842544df1c3adacf8d";
sha256 = "0yjqjfqr1gc4c9k5z5i7ngcpcwmyp3lzs4xv7allgqvglmw26ji4";
};

postPatch = ''