Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.fixer.sensor.ExchangeData Class Reference

Public Member Functions

def __init__ (self, target_currency, api_key)
 
def update (self)
 

Public Attributes

 api_key
 
 exchange
 
 rate
 
 target_currency
 

Detailed Description

Get the latest data and update the states.

Definition at line 108 of file sensor.py.

Constructor & Destructor Documentation

◆ __init__()

def homeassistant.components.fixer.sensor.ExchangeData.__init__ (   self,
  target_currency,
  api_key 
)
Initialize the data object.

Definition at line 111 of file sensor.py.

Member Function Documentation

◆ update()

def homeassistant.components.fixer.sensor.ExchangeData.update (   self)
Get the latest data from Fixer.io.

Definition at line 118 of file sensor.py.

Member Data Documentation

◆ api_key

homeassistant.components.fixer.sensor.ExchangeData.api_key

Definition at line 113 of file sensor.py.

◆ exchange

homeassistant.components.fixer.sensor.ExchangeData.exchange

Definition at line 116 of file sensor.py.

◆ rate

homeassistant.components.fixer.sensor.ExchangeData.rate

Definition at line 114 of file sensor.py.

◆ target_currency

homeassistant.components.fixer.sensor.ExchangeData.target_currency

Definition at line 115 of file sensor.py.


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