Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.radarr.sensor Namespace Reference

Classes

class  RadarrSensor
 
class  RadarrSensorEntityDescription
 
class  RadarrSensorEntityDescriptionMixIn
 

Functions

None async_setup_entry (HomeAssistant hass, RadarrConfigEntry entry, AddEntitiesCallback async_add_entities)
 
tuple[RadarrSensorEntityDescription[T], str] get_modified_description (RadarrSensorEntityDescription[T] description, RootFolder mount)
 
str get_space (list[Diskspace] data, str name)
 

Variables

list BYTE_SIZES
 
int PARALLEL_UPDATES = 1
 

Detailed Description

Support for Radarr.

Function Documentation

◆ async_setup_entry()

None homeassistant.components.radarr.sensor.async_setup_entry ( HomeAssistant  hass,
RadarrConfigEntry  entry,
AddEntitiesCallback  async_add_entities 
)
Set up Radarr sensors based on a config entry.

Definition at line 117 of file sensor.py.

◆ get_modified_description()

tuple[RadarrSensorEntityDescription[T], str] homeassistant.components.radarr.sensor.get_modified_description ( RadarrSensorEntityDescription[T]  description,
RootFolder   mount 
)
Return modified description and folder name.

Definition at line 37 of file sensor.py.

◆ get_space()

str homeassistant.components.radarr.sensor.get_space ( list[Diskspace]  data,
str  name 
)
Get space.

Definition at line 27 of file sensor.py.

Variable Documentation

◆ BYTE_SIZES

list homeassistant.components.radarr.sensor.BYTE_SIZES
Initial value:
1 = [
2  UnitOfInformation.BYTES,
3  UnitOfInformation.KILOBYTES,
4  UnitOfInformation.MEGABYTES,
5  UnitOfInformation.GIGABYTES,
6 ]

Definition at line 107 of file sensor.py.

◆ PARALLEL_UPDATES

int homeassistant.components.radarr.sensor.PARALLEL_UPDATES = 1

Definition at line 114 of file sensor.py.