We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 72e873f commit c4b623dCopy full SHA for c4b623d
openems/__main__.py
@@ -70,7 +70,7 @@ def get_channel_list(ctx, edge_id, component_id):
70
edge_config = ctx.obj['client'].get_edge_config(edge_id)
71
72
component = [v for (k, v) in edge_config['components'].items() if k == component_id][0]
73
- for channel in component['channels']:
+ for channel in component.get('channels', []):
74
click.echo(click.style(f'{component_id}/{channel}', fg='green'))
75
76
0 commit comments