Skip to content

Commit

Permalink
fix live attribute again (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
pinkywafer authored Oct 19, 2020
1 parent 331be7b commit 332cb46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/youtube/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ async def is_live(url, name, hass, session):
async with async_timeout.timeout(10, loop=hass.loop):
response = await session.get(url)
info = await response.text()
if '{"key":"is_viewed_live","value":"True"}' in info:
if 'Started streaming' in info:
returnvalue = True
_LOGGER.debug('%s - Latest Video is live', name)
except Exception as error: # pylint: disable=broad-except
Expand Down

0 comments on commit 332cb46

Please sign in to comment.