Skip to content

Commit be3cc1c

Browse files
committed
feat: Propagate media player attribute media_position_updated_at
Relates to unfoldedcircle/feature-and-bug-tracker#443
1 parent 8eaba6a commit be3cc1c

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88

99
_Changes in the next release_
1010

11+
### Added
12+
- Propagate media player attribute `media_position_updated_at`.
13+
1114
### Fixed
1215
- Media player `media_type` attribute value should be upper case to match entity documentation.
16+
1317
### Changed
1418
- update README and driver description ([#67](https://github.com/unfoldedcircle/integration-home-assistant/pull/67)).
1519

src/client/entity/media_player.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ pub(crate) fn map_media_player_attributes(
5656
}
5757
json::move_value(ha_attr, &mut attributes, "is_volume_muted", "muted");
5858
json::move_entry(ha_attr, &mut attributes, "media_position");
59+
json::move_entry(ha_attr, &mut attributes, "media_position_updated_at");
5960
json::move_entry(ha_attr, &mut attributes, "media_duration");
6061
json::move_entry(ha_attr, &mut attributes, "media_title");
6162
json::move_entry(ha_attr, &mut attributes, "media_artist");

0 commit comments

Comments
 (0)