summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorRobert Schütz <robert.schuetz@stud.uni-heidelberg.de>2019-02-21 14:02:05 +0100
committerRobert Schütz <robert.schuetz@stud.uni-heidelberg.de>2019-02-21 14:03:35 +0100
commit3382d93982eecfdec05452d8e169781852f88aae (patch)
tree1a2a712d7deb0ed9a60d5746fc10fa2d09a3f526 /nixos
parent6450d8c5ca6f4a9de975897bccdebc15c68f1ec3 (diff)
downloadnixpkgs-3382d93982eecfdec05452d8e169781852f88aae.tar
nixpkgs-3382d93982eecfdec05452d8e169781852f88aae.tar.gz
nixpkgs-3382d93982eecfdec05452d8e169781852f88aae.tar.bz2
nixpkgs-3382d93982eecfdec05452d8e169781852f88aae.tar.lz
nixpkgs-3382d93982eecfdec05452d8e169781852f88aae.tar.xz
nixpkgs-3382d93982eecfdec05452d8e169781852f88aae.tar.zst
nixpkgs-3382d93982eecfdec05452d8e169781852f88aae.zip
home-assistant-cli: 0.5.0 -> 0.6.0
Diffstat (limited to 'nixos')
-rw-r--r--nixos/tests/home-assistant.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/tests/home-assistant.nix b/nixos/tests/home-assistant.nix
index a93360b252f..8def0a6f9b9 100644
--- a/nixos/tests/home-assistant.nix
+++ b/nixos/tests/home-assistant.nix
@@ -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