Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.motioneye.entity.MotionEyeEntity Class Reference
Inheritance diagram for homeassistant.components.motioneye.entity.MotionEyeEntity:
[legend]
Collaboration diagram for homeassistant.components.motioneye.entity.MotionEyeEntity:
[legend]

Public Member Functions

None __init__ (self, str config_entry_id, str type_name, dict[str, Any] camera, MotionEyeClient client, DataUpdateCoordinator coordinator, MappingProxyType[str, Any] options, EntityDescription|None entity_description=None)
 
bool available (self)
 
DeviceInfo device_info (self)
 
str unique_id (self)
 
- Public Member Functions inherited from homeassistant.helpers.update_coordinator.CoordinatorEntity
None __init__ (self, _DataUpdateCoordinatorT coordinator, Any context=None)
 
None async_update (self)
 

Public Attributes

 entity_description
 

Private Attributes

 _camera_id
 
 _client
 
 _device_identifier
 
 _options
 
 _unique_id
 

Static Private Attributes

bool _attr_has_entity_name = True
 

Detailed Description

Base class for motionEye entities.

Definition at line 28 of file entity.py.

Constructor & Destructor Documentation

◆ __init__()

None homeassistant.components.motioneye.entity.MotionEyeEntity.__init__ (   self,
str  config_entry_id,
str  type_name,
dict[str, Any]  camera,
MotionEyeClient  client,
DataUpdateCoordinator  coordinator,
MappingProxyType[str, Any]  options,
EntityDescription | None   entity_description = None 
)
Initialize a motionEye entity.

Definition at line 33 of file entity.py.

Member Function Documentation

◆ available()

bool homeassistant.components.motioneye.entity.MotionEyeEntity.available (   self)
Return if entity is available.

Reimplemented from homeassistant.helpers.update_coordinator.CoordinatorEntity.

Reimplemented in homeassistant.components.motioneye.camera.MotionEyeMjpegCamera.

Definition at line 71 of file entity.py.

◆ device_info()

DeviceInfo homeassistant.components.motioneye.entity.MotionEyeEntity.device_info (   self)
Return the device information.

Definition at line 66 of file entity.py.

◆ unique_id()

str homeassistant.components.motioneye.entity.MotionEyeEntity.unique_id (   self)
Return a unique id for this instance.

Definition at line 61 of file entity.py.

Member Data Documentation

◆ _attr_has_entity_name

bool homeassistant.components.motioneye.entity.MotionEyeEntity._attr_has_entity_name = True
staticprivate

Definition at line 31 of file entity.py.

◆ _camera_id

homeassistant.components.motioneye.entity.MotionEyeEntity._camera_id
private

Definition at line 44 of file entity.py.

◆ _client

homeassistant.components.motioneye.entity.MotionEyeEntity._client
private

Definition at line 53 of file entity.py.

◆ _device_identifier

homeassistant.components.motioneye.entity.MotionEyeEntity._device_identifier
private

Definition at line 45 of file entity.py.

◆ _options

homeassistant.components.motioneye.entity.MotionEyeEntity._options
private

Definition at line 55 of file entity.py.

◆ _unique_id

homeassistant.components.motioneye.entity.MotionEyeEntity._unique_id
private

Definition at line 48 of file entity.py.

◆ entity_description

homeassistant.components.motioneye.entity.MotionEyeEntity.entity_description

Definition at line 57 of file entity.py.


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