Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.mochad.MochadCtrl Class Reference

Public Member Functions

def __init__ (self, host, port)
 
def disconnect (self)
 
def host (self)
 
def port (self)
 

Public Attributes

 ctrl
 

Private Attributes

 _host
 
 _port
 

Detailed Description

Mochad controller.

Definition at line 66 of file __init__.py.

Constructor & Destructor Documentation

◆ __init__()

def homeassistant.components.mochad.MochadCtrl.__init__ (   self,
  host,
  port 
)
Initialize a PyMochad controller.

Definition at line 69 of file __init__.py.

Member Function Documentation

◆ disconnect()

def homeassistant.components.mochad.MochadCtrl.disconnect (   self)
Close the connection to the mochad socket.

Definition at line 87 of file __init__.py.

◆ host()

def homeassistant.components.mochad.MochadCtrl.host (   self)
Return the server where mochad is running.

Definition at line 78 of file __init__.py.

◆ port()

def homeassistant.components.mochad.MochadCtrl.port (   self)
Return the port mochad is running on.

Definition at line 83 of file __init__.py.

Member Data Documentation

◆ _host

homeassistant.components.mochad.MochadCtrl._host
private

Definition at line 72 of file __init__.py.

◆ _port

homeassistant.components.mochad.MochadCtrl._port
private

Definition at line 73 of file __init__.py.

◆ ctrl

homeassistant.components.mochad.MochadCtrl.ctrl

Definition at line 75 of file __init__.py.


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