From a2183e75ab8d1f5ad7718a0614cd458526d7542d Mon Sep 17 00:00:00 2001 From: Jonny Bergdahl Date: Tue, 5 Jul 2022 00:56:45 +0200 Subject: [PATCH] Decode HTML encoded titles (#58) --- custom_components/youtube/sensor.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/custom_components/youtube/sensor.py b/custom_components/youtube/sensor.py index c38e03d..74af357 100644 --- a/custom_components/youtube/sensor.py +++ b/custom_components/youtube/sensor.py @@ -14,6 +14,7 @@ from homeassistant.helpers.entity import Entity from dateutil.parser import parse import re +import html CONF_CHANNEL_ID = 'channel_id' @@ -90,7 +91,7 @@ async def async_update(self): self.published = info.split('')[2].split('