We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86110d9 commit a2183e7Copy full SHA for a2183e7
custom_components/youtube/sensor.py
@@ -14,6 +14,7 @@
14
from homeassistant.helpers.entity import Entity
15
from dateutil.parser import parse
16
import re
17
+import html
18
19
CONF_CHANNEL_ID = 'channel_id'
20
@@ -90,7 +91,7 @@ async def async_update(self):
90
91
self.published = info.split('<published>')[2].split('</')[0]
92
thumbnail_url = info.split(
93
'<media:thumbnail url="')[1].split('"')[0]
- self._state = title
94
+ self._state = html.unescape(title)
95
self._image = thumbnail_url
96
self.stars = info.split('<media:starRating count="')[1].split('"')[0]
97
self.views = info.split('<media:statistics views="')[1].split('"')[0]
0 commit comments