Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.mqtt.async_client.NullLock Class Reference

Public Member Functions

Self __enter__ (self)
 
None __exit__ (self, type[BaseException]|None exc_type, BaseException|None exc_value, TracebackType|None traceback)
 
None acquire (self, bool blocking=False, int timeout=-1)
 
None release (self)
 

Detailed Description

Null lock.

Definition at line 14 of file async_client.py.

Member Function Documentation

◆ __enter__()

Self homeassistant.components.mqtt.async_client.NullLock.__enter__ (   self)
Enter the lock.

Definition at line 18 of file async_client.py.

◆ __exit__()

None homeassistant.components.mqtt.async_client.NullLock.__exit__ (   self,
type[BaseException] | None  exc_type,
BaseException | None  exc_value,
TracebackType | None  traceback 
)
Exit the lock.

Definition at line 23 of file async_client.py.

◆ acquire()

None homeassistant.components.mqtt.async_client.NullLock.acquire (   self,
bool   blocking = False,
int   timeout = -1 
)
Acquire the lock.

Definition at line 32 of file async_client.py.

◆ release()

None homeassistant.components.mqtt.async_client.NullLock.release (   self)
Release the lock.

Definition at line 36 of file async_client.py.


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