From ef8351644d624d29a9548704e7d574b20f22a91d Mon Sep 17 00:00:00 2001 From: Daniel Berlin Date: Wed, 24 Jul 2019 17:26:18 -0700 Subject: [PATCH] The array of on states is retured by get_is_on, not is_on --- pyHS100/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyHS100/cli.py b/pyHS100/cli.py index 8afc89e..e8bab02 100755 --- a/pyHS100/cli.py +++ b/pyHS100/cli.py @@ -164,7 +164,7 @@ def state(ctx, dev): ) ) if dev.num_children > 0: - is_on = dev.is_on() + is_on = dev.get_is_on() aliases = dev.get_alias() for child in range(dev.num_children): click.echo(