Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.stream.diagnostics.Diagnostics Class Reference

Public Member Functions

None __init__ (self)
 
dict[str, Any] as_dict (self)
 
None increment (self, str key)
 
None set_value (self, str key, Any value)
 

Detailed Description

Holds diagnostics counters and key/values.

Definition at line 13 of file diagnostics.py.

Constructor & Destructor Documentation

◆ __init__()

None homeassistant.components.stream.diagnostics.Diagnostics.__init__ (   self)
Initialize Diagnostics.

Definition at line 16 of file diagnostics.py.

Member Function Documentation

◆ as_dict()

dict[str, Any] homeassistant.components.stream.diagnostics.Diagnostics.as_dict (   self)
Return diagnostics as a debug dictionary.

Definition at line 29 of file diagnostics.py.

◆ increment()

None homeassistant.components.stream.diagnostics.Diagnostics.increment (   self,
str  key 
)
Increment a counter for the specified key/event.

Definition at line 21 of file diagnostics.py.

◆ set_value()

None homeassistant.components.stream.diagnostics.Diagnostics.set_value (   self,
str  key,
Any  value 
)
Update a key/value pair.

Definition at line 25 of file diagnostics.py.


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