Static Public Attributes | |
| bool | |
Static Public Attributes inherited from homeassistant.helpers.entity.Entity | |
| bool | |
| EntityPlatform | |
| HomeAssistant | |
| None | |
| StateInfo | |
| StateType | |
| str | |
Private Attributes | |
| _config | |
| _state | |
Additional Inherited Members | |
Public Attributes inherited from homeassistant.helpers.entity.Entity | |
| device_entry | |
| entity_id | |
| hass | |
| parallel_updates | |
| platform | |
| registry_entry | |
Representation of a counter.
Definition at line 157 of file __init__.py.
| None homeassistant.components.counter.Counter.__init__ | ( | self, | |
| ConfigType | config | ||
| ) |
Initialize a counter.
Definition at line 163 of file __init__.py.
| None homeassistant.components.counter.Counter.async_added_to_hass | ( | self | ) |
Call when entity about to be added to Home Assistant.
Reimplemented from homeassistant.helpers.entity.Entity.
Definition at line 226 of file __init__.py.
| None homeassistant.components.counter.Counter.async_decrement | ( | self | ) |
Decrement the counter.
Definition at line 238 of file __init__.py.
| None homeassistant.components.counter.Counter.async_increment | ( | self | ) |
Increment a counter.
Definition at line 244 of file __init__.py.
| None homeassistant.components.counter.Counter.async_reset | ( | self | ) |
Reset a counter.
Definition at line 250 of file __init__.py.
| None homeassistant.components.counter.Counter.async_set_value | ( | self, | |
| int | value | ||
| ) |
Set counter to value.
Definition at line 256 of file __init__.py.
| None homeassistant.components.counter.Counter.async_update_config | ( | self, | |
| ConfigType | config | ||
| ) |
Change the counter's settings WS CRUD.
Definition at line 276 of file __init__.py.
Keep the state within the range of min/max values.
Definition at line 217 of file __init__.py.
| dict homeassistant.components.counter.Counter.extra_state_attributes | ( | self | ) |
Return the state attributes.
Reimplemented from homeassistant.helpers.entity.Entity.
Definition at line 199 of file __init__.py.
| Self homeassistant.components.counter.Counter.from_storage | ( | cls, | |
| ConfigType | config | ||
| ) |
Create counter instance from storage.
Definition at line 169 of file __init__.py.
| Self homeassistant.components.counter.Counter.from_yaml | ( | cls, | |
| ConfigType | config | ||
| ) |
Create counter instance from yaml config.
Definition at line 176 of file __init__.py.
Return the icon to be used for this entity.
Reimplemented from homeassistant.helpers.entity.Entity.
Definition at line 189 of file __init__.py.
Return name of the counter.
Reimplemented from homeassistant.helpers.entity.Entity.
Definition at line 184 of file __init__.py.
| int | None homeassistant.components.counter.Counter.state | ( | self | ) |
Return the current value of the counter.
Reimplemented from homeassistant.helpers.entity.Entity.
Definition at line 194 of file __init__.py.
Return unique id of the entity.
Reimplemented from homeassistant.helpers.entity.Entity.
Definition at line 213 of file __init__.py.
|
private |
Definition at line 278 of file __init__.py.
|
private |
Definition at line 235 of file __init__.py.
|
static |
Definition at line 160 of file __init__.py.