From b3510c0ecd71f3af64f9a1731a647c453847a4fc Mon Sep 17 00:00:00 2001 From: Thamin Date: Wed, 12 Oct 2022 12:35:01 +0200 Subject: [PATCH 1/2] fix: Use new deck.info keys in inspect command - type => model - rows => nb_rows - cols => nb_cols --- streamdeckfs/commands/inspect.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/streamdeckfs/commands/inspect.py b/streamdeckfs/commands/inspect.py index 1892cf5..23e3bbd 100644 --- a/streamdeckfs/commands/inspect.py +++ b/streamdeckfs/commands/inspect.py @@ -25,11 +25,11 @@ def inspect(): for deck in decks.values(): info = deck.info click.echo(f"* Deck {info['serial']}{'' if deck.info['connected'] else ' (already connected elsewhere)'}") - click.echo(f"\t - Type: {info['type']}") + click.echo(f"\t - Type: {info['model']}") click.echo(f"\t - ID: {info['id']}") click.echo(f"\t - Serial: {info['serial']}") click.echo(f"\t - Firmware Version: {info['firmware']}") - click.echo(f"\t - Key Count: {info['nb_keys']} (in a {info['rows']}x{info['cols']} grid)") + click.echo(f"\t - Key Count: {info['nb_keys']} (in a {info['nb_rows']}x{info['nb_cols']} grid)") click.echo(f"\t - Key Images: {info['key_width']}x{info['key_height']} pixels, {info['format']} format") if deck.info["connected"]: From da1f24d686d149df8549374c83f57f7d9056956d Mon Sep 17 00:00:00 2001 From: Thamin Date: Wed, 12 Oct 2022 12:36:14 +0200 Subject: [PATCH 2/2] fix: Fix emoji version below 2.0.0 --- setup.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.cfg b/setup.cfg index 8f730f6..15f8967 100644 --- a/setup.cfg +++ b/setup.cfg @@ -32,7 +32,7 @@ install_requires = click click-log cloup - emoji + emoji<2.0.0 inotify-simple jinja2 networkx