Permalink
Browse files

fix(entity): honor --columns in entity get

  • Loading branch information...
maxandersen committed Feb 9, 2019
1 parent 237ade8 commit 67397a102295381d5d9101a51764643a3668e1e6
Showing with 7 additions and 1 deletion.
  1. +7 −1 homeassistant_cli/plugins/entity.py
@@ -32,7 +32,13 @@ def get(ctx: Configuration, entity):
state = api.get_state(ctx, entity)

if state:
ctx.echo(helper.format_output(ctx, [state], const.COLUMNS_ENTITIES))
ctx.echo(
helper.format_output(
ctx,
[state],
columns=ctx.columns if ctx.columns else const.COLUMNS_ENTITIES,
)
)
else:
_LOGGING.error("Entity with id: '%s' not found.", entity)

0 comments on commit 67397a1

Please sign in to comment.