@@ -58,34 +58,15 @@ async def async_setup_platform(hass, config, async_add_entities, discovery_info=
58
58
59
59
if "trakt" in config :
60
60
from .discovery .trakt import TraktMediarrSensor
61
- from .discovery .trakt_user import TraktUserMediarrSensor
62
-
63
- # Add default Trakt sensor
64
61
sensors .append (TraktMediarrSensor (
65
62
session ,
66
63
config ["trakt" ]["client_id" ],
67
64
config ["trakt" ]["client_secret" ],
68
65
config ["trakt" ].get ("trending_type" , "both" ),
69
66
config ["trakt" ].get ("max_items" , DEFAULT_MAX_ITEMS ),
70
- config ["trakt" ]. get ( "tmdb_api_key" )
67
+ config ["trakt" ][ "tmdb_api_key" ]
71
68
))
72
69
73
- # Add user-specific sensors
74
- user_endpoints = ['collection' , 'watched' , 'watchlist' ,
75
- 'recommendations' , 'recently_watched' , 'upcoming' ]
76
-
77
- for endpoint in user_endpoints :
78
- if config ["trakt" ].get (endpoint , False ):
79
- sensors .append (TraktUserMediarrSensor (
80
- session ,
81
- config ["trakt" ]["username" ],
82
- config ["trakt" ]["client_id" ],
83
- config ["trakt" ]["client_secret" ],
84
- endpoint ,
85
- config ["trakt" ].get ("max_items" , DEFAULT_MAX_ITEMS ),
86
- config ["trakt" ].get ("tmdb_api_key" )
87
- ))
88
-
89
70
if "tmdb" in config :
90
71
from .discovery .tmdb import TMDBMediarrSensor
91
72
tmdb_config = config ["tmdb" ]
0 commit comments