Skip to content

Commit

Permalink
Update ha_cards.py
Browse files Browse the repository at this point in the history
  • Loading branch information
joBr99 authored Nov 24, 2023
1 parent c59107a commit 27f214c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ def render(self):
self.title = main_entity.attributes.get("friendly_name", "unknown")
title = main_entity.attributes.get("media_title", "")
author = main_entity.attributes.get("media_artist", "")
volume = int(main_entity.attributes.get("media_artist", 0)*100)
volume = int(main_entity.attributes.get("volume_level", 0)*100)
iconplaypause = get_icon_char("pause") if main_entity.state == "playing" else get_icon_char("play")
onoffbutton = "disable"
shuffleBtn = "disable"
Expand Down

0 comments on commit 27f214c

Please sign in to comment.