Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.xiaomi_miio.gateway.ConnectXiaomiGateway Class Reference

Public Member Functions

def __init__ (self, hass, config_entry)
 
def async_connect_gateway (self, host, token)
 
def connect_gateway (self)
 
def gateway_device (self)
 
def gateway_info (self)
 

Private Attributes

 _cloud_country
 
 _cloud_password
 
 _cloud_username
 
 _config_entry
 
 _gateway_device
 
 _gateway_info
 
 _hass
 
 _host
 
 _token
 
 _use_cloud
 

Detailed Description

Class to async connect to a Xiaomi Gateway.

Definition at line 23 of file gateway.py.

Constructor & Destructor Documentation

◆ __init__()

def homeassistant.components.xiaomi_miio.gateway.ConnectXiaomiGateway.__init__ (   self,
  hass,
  config_entry 
)
Initialize the entity.

Definition at line 26 of file gateway.py.

Member Function Documentation

◆ async_connect_gateway()

def homeassistant.components.xiaomi_miio.gateway.ConnectXiaomiGateway.async_connect_gateway (   self,
  host,
  token 
)
Connect to the Xiaomi Gateway.

Definition at line 49 of file gateway.py.

◆ connect_gateway()

def homeassistant.components.xiaomi_miio.gateway.ConnectXiaomiGateway.connect_gateway (   self)
Connect the gateway in a way that can called by async_add_executor_job.

Definition at line 69 of file gateway.py.

◆ gateway_device()

def homeassistant.components.xiaomi_miio.gateway.ConnectXiaomiGateway.gateway_device (   self)
Return the class containing all connections to the gateway.

Definition at line 40 of file gateway.py.

◆ gateway_info()

def homeassistant.components.xiaomi_miio.gateway.ConnectXiaomiGateway.gateway_info (   self)
Return the class containing gateway info.

Definition at line 45 of file gateway.py.

Member Data Documentation

◆ _cloud_country

homeassistant.components.xiaomi_miio.gateway.ConnectXiaomiGateway._cloud_country
private

Definition at line 35 of file gateway.py.

◆ _cloud_password

homeassistant.components.xiaomi_miio.gateway.ConnectXiaomiGateway._cloud_password
private

Definition at line 34 of file gateway.py.

◆ _cloud_username

homeassistant.components.xiaomi_miio.gateway.ConnectXiaomiGateway._cloud_username
private

Definition at line 33 of file gateway.py.

◆ _config_entry

homeassistant.components.xiaomi_miio.gateway.ConnectXiaomiGateway._config_entry
private

Definition at line 29 of file gateway.py.

◆ _gateway_device

homeassistant.components.xiaomi_miio.gateway.ConnectXiaomiGateway._gateway_device
private

Definition at line 30 of file gateway.py.

◆ _gateway_info

homeassistant.components.xiaomi_miio.gateway.ConnectXiaomiGateway._gateway_info
private

Definition at line 31 of file gateway.py.

◆ _hass

homeassistant.components.xiaomi_miio.gateway.ConnectXiaomiGateway._hass
private

Definition at line 28 of file gateway.py.

◆ _host

homeassistant.components.xiaomi_miio.gateway.ConnectXiaomiGateway._host
private

Definition at line 36 of file gateway.py.

◆ _token

homeassistant.components.xiaomi_miio.gateway.ConnectXiaomiGateway._token
private

Definition at line 37 of file gateway.py.

◆ _use_cloud

homeassistant.components.xiaomi_miio.gateway.ConnectXiaomiGateway._use_cloud
private

Definition at line 32 of file gateway.py.


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