Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.huawei_lte.sensor.HuaweiLteSensor Class Reference
Inheritance diagram for homeassistant.components.huawei_lte.sensor.HuaweiLteSensor:
[legend]
Collaboration diagram for homeassistant.components.huawei_lte.sensor.HuaweiLteSensor:
[legend]

Public Member Functions

None __init__ (self, Router router, str key, str item, HuaweiSensorEntityDescription entity_description)
 
None async_added_to_hass (self)
 
None async_update (self)
 
None async_will_remove_from_hass (self)
 
SensorDeviceClass|None device_class (self)
 
str|None icon (self)
 
datetime|None last_reset (self)
 
str|None native_unit_of_measurement (self)
 
StateType native_value (self)
 
- Public Member Functions inherited from homeassistant.components.huawei_lte.entity.HuaweiLteBaseEntityWithDevice
DeviceInfo device_info (self)
 
- Public Member Functions inherited from homeassistant.components.huawei_lte.entity.HuaweiLteBaseEntity
None __init__ (self, Router router)
 
bool available (self)
 
str unique_id (self)
 
- Public Member Functions inherited from homeassistant.helpers.entity.Entity
None __init_subclass__ (cls, **Any kwargs)
 
str __repr__ (self)
 
None add_to_platform_abort (self)
 
None add_to_platform_finish (self)
 
bool assumed_state (self)
 
None async_device_update (self, bool warning=True)
 
None async_internal_will_remove_from_hass (self)
 
None async_on_remove (self, CALLBACK_TYPE func)
 
None async_remove (self, *bool force_remove=False)
 
None async_removed_from_registry (self)
 
None async_schedule_update_ha_state (self, bool force_refresh=False)
 
None async_set_context (self, Context context)
 
None async_update_ha_state (self, bool force_refresh=False)
 
None async_write_ha_state (self)
 
str|None attribution (self)
 
bool enabled (self)
 
EntityCategory|None entity_category (self)
 
str|None entity_picture (self)
 
bool entity_registry_enabled_default (self)
 
bool entity_registry_visible_default (self)
 
Mapping[str, Any]|None extra_state_attributes (self)
 
bool force_update (self)
 
HassJobType get_hassjob_type (self, str function_name)
 
bool has_entity_name (self)
 
str|UndefinedType|None name (self)
 
None schedule_update_ha_state (self, bool force_refresh=False)
 
bool should_poll (self)
 
str|None suggested_object_id (self)
 
int|None supported_features (self)
 
str|None translation_key (self)
 
Mapping[str, strtranslation_placeholders (self)
 
bool use_device_name (self)
 
- Public Member Functions inherited from homeassistant.helpers.entity.CachedProperties
None __init__ (cls, str name, tuple[type,...] bases, dict[Any, Any] namespace, **Any kwargs)
 
Any __new__ (mcs, str name, tuple[type,...] bases, dict[Any, Any] namespace, set[str]|None cached_properties=None, **Any kwargs)
 
- Public Member Functions inherited from homeassistant.components.sensor.SensorEntity
None add_to_platform_start (self, HomeAssistant hass, EntityPlatform platform, asyncio.Semaphore|None parallel_updates)
 
None async_internal_added_to_hass (self)
 
None async_registry_entry_updated (self)
 
dict[str, Any]|None capability_attributes (self)
 
er.EntityOptionsType|None get_initial_entity_options (self)
 
list[str]|None options (self)
 
Any state (self)
 
dict[str, Any]|None state_attributes (self)
 
SensorStateClass|str|None state_class (self)
 
int|None suggested_display_precision (self)
 
str|None suggested_unit_of_measurement (self)
 
str|None unit_of_measurement (self)
 

Public Attributes

 entity_description
 
 item
 
 key
 
- Public Attributes inherited from homeassistant.components.huawei_lte.entity.HuaweiLteBaseEntity
 router
 
- Public Attributes inherited from homeassistant.helpers.entity.Entity
 device_entry
 
 entity_id
 
 hass
 
 parallel_updates
 
 platform
 
 registry_entry
 
- Public Attributes inherited from homeassistant.components.sensor.SensorEntity
 entity_category
 
 registry_entry
 
 unit_of_measurement
 

Static Public Attributes

 None
 
 StateType
 
- Static Public Attributes inherited from homeassistant.helpers.entity.Entity
 bool
 
 EntityPlatform
 
 HomeAssistant
 
 None
 
 StateInfo
 
 StateType
 
 str
 
- Static Public Attributes inherited from homeassistant.components.sensor.SensorEntity
 Decimal
 
 None
 
 UndefinedType
 

Private Member Functions

str _device_unique_id (self)
 

Private Attributes

 _available
 
 _last_reset
 
 _unit
 

Detailed Description

Huawei LTE sensor entity.

Definition at line 785 of file sensor.py.

Constructor & Destructor Documentation

◆ __init__()

None homeassistant.components.huawei_lte.sensor.HuaweiLteSensor.__init__ (   self,
Router  router,
str  key,
str  item,
HuaweiSensorEntityDescription  entity_description 
)
Initialize.

Definition at line 793 of file sensor.py.

Member Function Documentation

◆ _device_unique_id()

str homeassistant.components.huawei_lte.sensor.HuaweiLteSensor._device_unique_id (   self)
private
Return unique ID for entity within a router.

Reimplemented from homeassistant.components.huawei_lte.entity.HuaweiLteBaseEntity.

Definition at line 825 of file sensor.py.

◆ async_added_to_hass()

None homeassistant.components.huawei_lte.sensor.HuaweiLteSensor.async_added_to_hass (   self)
Subscribe to needed data on add.

Reimplemented from homeassistant.components.huawei_lte.entity.HuaweiLteBaseEntity.

Definition at line 806 of file sensor.py.

◆ async_update()

None homeassistant.components.huawei_lte.sensor.HuaweiLteSensor.async_update (   self)
Update state.

Reimplemented from homeassistant.components.huawei_lte.entity.HuaweiLteBaseEntity.

Definition at line 858 of file sensor.py.

◆ async_will_remove_from_hass()

None homeassistant.components.huawei_lte.sensor.HuaweiLteSensor.async_will_remove_from_hass (   self)
Unsubscribe from needed data on remove.

Reimplemented from homeassistant.components.huawei_lte.entity.HuaweiLteBaseEntity.

Definition at line 815 of file sensor.py.

◆ device_class()

SensorDeviceClass | None homeassistant.components.huawei_lte.sensor.HuaweiLteSensor.device_class (   self)
Return device class for sensor.

Reimplemented from homeassistant.components.sensor.SensorEntity.

Definition at line 846 of file sensor.py.

◆ icon()

str | None homeassistant.components.huawei_lte.sensor.HuaweiLteSensor.icon (   self)
Return icon for sensor.

Reimplemented from homeassistant.helpers.entity.Entity.

Definition at line 839 of file sensor.py.

◆ last_reset()

datetime | None homeassistant.components.huawei_lte.sensor.HuaweiLteSensor.last_reset (   self)
Return the time when the sensor was last reset, if any.

Reimplemented from homeassistant.components.sensor.SensorEntity.

Definition at line 854 of file sensor.py.

◆ native_unit_of_measurement()

str | None homeassistant.components.huawei_lte.sensor.HuaweiLteSensor.native_unit_of_measurement (   self)
Return sensor's unit of measurement.

Reimplemented from homeassistant.components.sensor.SensorEntity.

Definition at line 834 of file sensor.py.

◆ native_value()

StateType homeassistant.components.huawei_lte.sensor.HuaweiLteSensor.native_value (   self)
Return sensor state.

Reimplemented from homeassistant.components.sensor.SensorEntity.

Definition at line 829 of file sensor.py.

Member Data Documentation

◆ _available

homeassistant.components.huawei_lte.sensor.HuaweiLteSensor._available
private

Definition at line 888 of file sensor.py.

◆ _last_reset

homeassistant.components.huawei_lte.sensor.HuaweiLteSensor._last_reset
private

Definition at line 887 of file sensor.py.

◆ _unit

homeassistant.components.huawei_lte.sensor.HuaweiLteSensor._unit
private

Definition at line 886 of file sensor.py.

◆ entity_description

homeassistant.components.huawei_lte.sensor.HuaweiLteSensor.entity_description

Definition at line 804 of file sensor.py.

◆ item

homeassistant.components.huawei_lte.sensor.HuaweiLteSensor.item

Definition at line 803 of file sensor.py.

◆ key

homeassistant.components.huawei_lte.sensor.HuaweiLteSensor.key

Definition at line 802 of file sensor.py.

◆ None

homeassistant.components.huawei_lte.sensor.HuaweiLteSensor.None
static

Definition at line 790 of file sensor.py.

◆ StateType

homeassistant.components.huawei_lte.sensor.HuaweiLteSensor.StateType
static

Definition at line 789 of file sensor.py.


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