Skip to content

Commit

Permalink
Fix broken live attribute (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
pinkywafer authored Oct 2, 2020
1 parent e554e8b commit 7be4fb4
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 @@ -119,7 +119,7 @@ async def is_live(channel_id, name, hass, session):
async with async_timeout.timeout(10, loop=hass.loop):
response = await session.get(url)
info = await response.text()
if 'live-promo' in info:
if 'BADGE_STYLE_TYPE_LIVE_NOW' in info:
returnvalue = True
_LOGGER.debug('%s - Channel is live', name)
except Exception as error: # pylint: disable=broad-except
Expand Down

0 comments on commit 7be4fb4

Please sign in to comment.