From f66438b0ceaa1d75a64e4c7dda73854865fa0f3c Mon Sep 17 00:00:00 2001 From: Michael <35783820+mib1185@users.noreply.github.com> Date: Tue, 2 Jan 2024 23:47:32 +0100 Subject: [PATCH] Remove group_members from significant attributes in media player (#106916) --- homeassistant/components/media_player/significant_change.py | 2 -- tests/components/media_player/test_significant_change.py | 6 +++++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/media_player/significant_change.py b/homeassistant/components/media_player/significant_change.py index adc96fc8b83..43a253d9220 100644 --- a/homeassistant/components/media_player/significant_change.py +++ b/homeassistant/components/media_player/significant_change.py @@ -11,7 +11,6 @@ from homeassistant.helpers.significant_change import ( from . import ( ATTR_ENTITY_PICTURE_LOCAL, - ATTR_GROUP_MEMBERS, ATTR_MEDIA_POSITION, ATTR_MEDIA_POSITION_UPDATED_AT, ATTR_MEDIA_VOLUME_LEVEL, @@ -25,7 +24,6 @@ INSIGNIFICANT_ATTRIBUTES: set[str] = { SIGNIFICANT_ATTRIBUTES: set[str] = { ATTR_ENTITY_PICTURE_LOCAL, - ATTR_GROUP_MEMBERS, *ATTR_TO_PROPERTY, } - INSIGNIFICANT_ATTRIBUTES diff --git a/tests/components/media_player/test_significant_change.py b/tests/components/media_player/test_significant_change.py index 1b0ac6fe5aa..233f133c342 100644 --- a/tests/components/media_player/test_significant_change.py +++ b/tests/components/media_player/test_significant_change.py @@ -51,7 +51,11 @@ async def test_significant_state_change() -> None: {ATTR_ENTITY_PICTURE_LOCAL: "new_value"}, True, ), - ({ATTR_GROUP_MEMBERS: "old_value"}, {ATTR_GROUP_MEMBERS: "new_value"}, True), + ( + {ATTR_GROUP_MEMBERS: ["old1", "old2"]}, + {ATTR_GROUP_MEMBERS: ["old1", "new"]}, + False, + ), ({ATTR_INPUT_SOURCE: "old_value"}, {ATTR_INPUT_SOURCE: "new_value"}, True), ( {ATTR_MEDIA_ALBUM_ARTIST: "old_value"},