Skip to content

Commit 17a52af

Browse files
authored
Use MAss Queue Custom Integration (#3)
* Remove unused dependency * Add `mass_queue` integration * Add HACS installation method * Remove examples
1 parent 417f6d1 commit 17a52af

File tree

5 files changed

+15
-351
lines changed

5 files changed

+15
-351
lines changed

README.md

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ Display the queue for any given media player.
1414

1515
## Installation
1616

17+
### Prequisites
18+
19+
In addition to the Music Assistant integration, this card depends on the custom integration `mass_queue` for all the actions. Follow all instructions [in the repository](https://github.com/droans/mass_queue) to install first.
20+
1721
### HACS Installation
1822
1. Use button above to add to your Home Assistant instance.
1923

@@ -29,20 +33,7 @@ Display the queue for any given media player.
2933
- Press "Add Resource". For the URL, type in "/local/mass-card.js". Select "JavaScript module" and click "Create".
3034

3135
## Configuration
32-
33-
### Create services
34-
35-
This card requires you to create three scripts: `script.get_player_queues`, `script.mass_play_queue_item`, and `script.mass_remove_queue_item`. If you know what you are doing, you can manually configure this. Otherwise, use the instructions below to help out.
36-
37-
1. Install the Pyscript integration from HACS.
38-
2. Download the file `examples/mass_queue.py`. Save it in your Home Assistant `<config>/pyscript/scripts` directory.
39-
3. Copy the example scripts from `examples/script.yaml` file.
40-
41-
### Add Card
42-
43-
The card does not have a visual editor.
44-
45-
Use this configuration to create your card:
36+
The card does not have a visual editor. Use this configuration to create your card:
4637

4738
```yaml
4839
type: custom:mass-card

examples/ha_script.yaml

Lines changed: 0 additions & 143 deletions
This file was deleted.

examples/mass_queue.py

Lines changed: 0 additions & 184 deletions
This file was deleted.

src/media-row.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { css, html, LitElement } from 'lit';
22
import { property } from 'lit/decorators.js'
3-
import Icon from '@mdi/react';
43
import { mdiCloseThick } from '@mdi/js';
54
import { QueueItem } from './types';
65

0 commit comments

Comments
 (0)