Functions | |
| dict[str, Any] | async_get_config_entry_diagnostics (HomeAssistant hass, ConfigEntry entry) |
| float|None | get_gas_price (EnergyZeroData data, int hours) |
Diagnostics support for EnergyZero.
| dict[str, Any] homeassistant.components.energyzero.diagnostics.async_get_config_entry_diagnostics | ( | HomeAssistant | hass, |
| ConfigEntry | entry | ||
| ) |
Return diagnostics for a config entry.
Definition at line 34 of file diagnostics.py.
| float | None homeassistant.components.energyzero.diagnostics.get_gas_price | ( | EnergyZeroData | data, |
| int | hours | ||
| ) |
Get the gas price for a given hour.
Args:
data: The data object.
hours: The number of hours to add to the current time.
Returns:
The gas market price value.
Definition at line 16 of file diagnostics.py.