(
        self,
        api_key: str,
        device_id: str,
        use_channel_info: bool = True,
        session: Optional[ClientSession] = None,
    )
Initialize SmartThingsTV.
Initialize SmartThingsTV.
Initialize SmartThingsTV .
def __init__(
        self,
        api_key: str,
        device_id: str,
        use_channel_info: bool = True,
        session: Optional[ClientSession] = None,
    ):

        """Initialize SmartThingsTV."""
        self._api_key = api_key
        self._device_id = device_id
        self._use_channel_info = use_channel_info
        if session:
            self._session = session
            self._managed_session = False
        else:
            self._session = ClientSession()
            self._managed_session = True

        self._device_name = None
        self._state = STStatus.STATE_UNKNOWN
        self._prev_state = STStatus.STATE_UNKNOWN
        self._muted = False
        self._volume = 10
        self._source_list = None
        self._source_list_map = None
        self._source = ""
        self._channel = ""
        self._channel_name = ""
        self._sound_mode = None
        self._sound_mode_list = None
        self._picture_mode = None
        self._picture_mode_list = None

        self._is_forced_val = False
        self._forced_count = 0
def __init__ ( self , api_key : str , device_id : str , use_channel_info : bool = True , session : Optional [ ClientSession ] = None , ) : self . _api_key = api_key self . _device_id = device_id self . _use_channel_info = use_channel_info if session : self . _session = session self . _managed_session = False else : self . _session = ClientSession ( ) self . _managed_session = True self . _device_name = None self . _state = STStatus . STATE_UNKNOWN self . _prev_state = STStatus . STATE_UNKNOWN self . _muted = False self . _volume = 10 self . _source_list = None self . _source_list_map = None self . _source = "" self . _channel = "" self . _channel_name = "" self . _sound_mode = None self . _sound_mode_list = None self . _picture_mode = None self . _picture_mode_list = None self . _is_forced_val = False self . _forced_count = 0