Skip to content

Commit

Permalink
fix: don't show players without grouping unless showNonSonosPlayers i…
Browse files Browse the repository at this point in the history
…s true
  • Loading branch information
punxaphil committed Feb 24, 2024
1 parent 1a4e6f3 commit a95da61
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/model/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ export default class Store {
.filter((hassEntity) => {
if (hassEntity.entity_id.includes('media_player')) {
const platform = hassWithEntities.entities?.[hassEntity.entity_id]?.platform;
if (!platform || this.config.showNonSonosPlayers || platform === 'sonos') {
const hasGrouping = !!hassEntity.attributes?.group_members;
if ((!platform && hasGrouping) || this.config.showNonSonosPlayers || platform === 'sonos') {
if (configEntities.length) {
const includesEntity = configEntities.includes(hassEntity.entity_id);
return !!this.config.excludeItemsInEntitiesList !== includesEntity;
Expand Down

0 comments on commit a95da61

Please sign in to comment.