Remove deprecated channel views attribute from Twitch (#129008)

This commit is contained in:
Jason Parker 2024-10-23 10:27:19 -04:00 committed by GitHub
parent 165a00896e
commit 8253cfd21d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 0 additions and 4 deletions

View file

@ -27,7 +27,6 @@ class TwitchUpdate:
name: str
followers: int
views: int
is_streaming: bool
game: str | None
title: str | None
@ -103,7 +102,6 @@ class TwitchCoordinator(DataUpdateCoordinator[dict[str, TwitchUpdate]]):
data[channel.id] = TwitchUpdate(
channel.display_name,
followers.total,
channel.view_count,
bool(stream),
stream.game_name if stream else None,
stream.title if stream else None,

View file

@ -23,7 +23,6 @@ ATTR_SUBSCRIPTION_TIER = "subscription_tier"
ATTR_FOLLOW = "following"
ATTR_FOLLOW_SINCE = "following_since"
ATTR_FOLLOWING = "followers"
ATTR_VIEWS = "views"
ATTR_VIEWERS = "viewers"
ATTR_STARTED_AT = "started_at"
@ -79,7 +78,6 @@ class TwitchSensor(CoordinatorEntity[TwitchCoordinator], SensorEntity):
channel = self.channel
resp = {
ATTR_FOLLOWING: channel.followers,
ATTR_VIEWS: channel.views,
ATTR_GAME: channel.game,
ATTR_TITLE: channel.title,
ATTR_STARTED_AT: channel.started_at,