Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.samsungtv.bridge.SamsungTVLegacyBridge Class Reference
Inheritance diagram for homeassistant.components.samsungtv.bridge.SamsungTVLegacyBridge:
[legend]
Collaboration diagram for homeassistant.components.samsungtv.bridge.SamsungTVLegacyBridge:
[legend]

Public Member Functions

None __init__ (self, HomeAssistant hass, str method, str host, int|None port)
 
None async_close_remote (self)
 
dict[str, Any]|None async_device_info (self)
 
bool async_is_on (self)
 
None async_send_keys (self, list[str] keys)
 
str async_try_connect (self)
 
- Public Member Functions inherited from homeassistant.components.samsungtv.bridge.SamsungTVBridge
None async_power_off (self)
 
None async_request_app_list (self)
 
bool power_off_in_progress (self)
 
None register_app_list_callback (self, Callable[[dict[str, str]], None] func)
 
None register_reauth_callback (self, CALLBACK_TYPE func)
 
None register_update_config_entry_callback (self, Callable[[Mapping[str, Any]], None] func)
 

Public Attributes

 auth_failed
 
 config
 
- Public Attributes inherited from homeassistant.components.samsungtv.bridge.SamsungTVBridge
 hass
 
 host
 
 method
 
 port
 

Private Member Functions

None _async_send_power_off (self)
 
None _close_remote (self)
 
Remote _get_remote (self)
 
bool _is_on (self)
 
None _notify_reauth_callback (self)
 
None _send_key (self, str key)
 
str _try_connect (self)
 

Private Attributes

 _remote
 

Additional Inherited Members

- Static Public Member Functions inherited from homeassistant.components.samsungtv.bridge.SamsungTVBridge
SamsungTVBridge get_bridge (HomeAssistant hass, str method, str host, int|None port=None, Mapping[str, Any]|None entry_data=None)
 

Detailed Description

The Bridge for Legacy TVs.

Definition at line 258 of file bridge.py.

Constructor & Destructor Documentation

◆ __init__()

None homeassistant.components.samsungtv.bridge.SamsungTVLegacyBridge.__init__ (   self,
HomeAssistant  hass,
str  method,
str  host,
int | None   port 
)
Initialize Bridge.

Reimplemented from homeassistant.components.samsungtv.bridge.SamsungTVBridge.

Definition at line 261 of file bridge.py.

Member Function Documentation

◆ _async_send_power_off()

None homeassistant.components.samsungtv.bridge.SamsungTVLegacyBridge._async_send_power_off (   self)
private
Send power off command to remote.

Reimplemented from homeassistant.components.samsungtv.bridge.SamsungTVBridge.

Definition at line 381 of file bridge.py.

◆ _close_remote()

None homeassistant.components.samsungtv.bridge.SamsungTVLegacyBridge._close_remote (   self)
private
Close remote object.

Definition at line 389 of file bridge.py.

◆ _get_remote()

Remote homeassistant.components.samsungtv.bridge.SamsungTVLegacyBridge._get_remote (   self)
private
Create or return a remote control instance.

Definition at line 333 of file bridge.py.

◆ _is_on()

bool homeassistant.components.samsungtv.bridge.SamsungTVLegacyBridge._is_on (   self)
private
Tells if the TV is on.

Definition at line 281 of file bridge.py.

◆ _notify_reauth_callback()

None homeassistant.components.samsungtv.bridge.SamsungTVLegacyBridge._notify_reauth_callback (   self)
private
Notify access denied callback.

Reimplemented from homeassistant.components.samsungtv.bridge.SamsungTVBridge.

Definition at line 328 of file bridge.py.

◆ _send_key()

None homeassistant.components.samsungtv.bridge.SamsungTVLegacyBridge._send_key (   self,
str  key 
)
private
Send a key using legacy protocol.

Definition at line 361 of file bridge.py.

◆ _try_connect()

str homeassistant.components.samsungtv.bridge.SamsungTVLegacyBridge._try_connect (   self)
private
Try to connect to the Legacy TV.

Definition at line 296 of file bridge.py.

◆ async_close_remote()

None homeassistant.components.samsungtv.bridge.SamsungTVLegacyBridge.async_close_remote (   self)
Close remote object.

Reimplemented from homeassistant.components.samsungtv.bridge.SamsungTVBridge.

Definition at line 385 of file bridge.py.

◆ async_device_info()

dict[str, Any] | None homeassistant.components.samsungtv.bridge.SamsungTVLegacyBridge.async_device_info (   self)
Try to gather infos of this device.

Reimplemented from homeassistant.components.samsungtv.bridge.SamsungTVBridge.

Definition at line 324 of file bridge.py.

◆ async_is_on()

bool homeassistant.components.samsungtv.bridge.SamsungTVLegacyBridge.async_is_on (   self)
Tells if the TV is on.

Reimplemented from homeassistant.components.samsungtv.bridge.SamsungTVBridge.

Definition at line 277 of file bridge.py.

◆ async_send_keys()

None homeassistant.components.samsungtv.bridge.SamsungTVLegacyBridge.async_send_keys (   self,
list[str]  keys 
)
Send a list of keys using legacy protocol.

Reimplemented from homeassistant.components.samsungtv.bridge.SamsungTVBridge.

Definition at line 351 of file bridge.py.

◆ async_try_connect()

str homeassistant.components.samsungtv.bridge.SamsungTVLegacyBridge.async_try_connect (   self)
Try to connect to the Legacy TV.

Reimplemented from homeassistant.components.samsungtv.bridge.SamsungTVBridge.

Definition at line 292 of file bridge.py.

Member Data Documentation

◆ _remote

homeassistant.components.samsungtv.bridge.SamsungTVLegacyBridge._remote
private

Definition at line 339 of file bridge.py.

◆ auth_failed

homeassistant.components.samsungtv.bridge.SamsungTVLegacyBridge.auth_failed

Definition at line 344 of file bridge.py.

◆ config

homeassistant.components.samsungtv.bridge.SamsungTVLegacyBridge.config

Definition at line 266 of file bridge.py.


The documentation for this class was generated from the following file: