Namespaces | |
| config_flow | |
| const | |
| diagnostics | |
| select | |
| sensor | |
Functions | |
| bool | async_migrate_entry (HomeAssistant hass, ConfigEntry config_entry) |
| bool | async_setup (HomeAssistant hass, ConfigType config) |
| bool | async_setup_entry (HomeAssistant hass, ConfigEntry entry) |
| bool | async_unload_entry (HomeAssistant hass, ConfigEntry entry) |
| None | config_entry_update_listener (HomeAssistant hass, ConfigEntry entry) |
| def | max_28_days (config) |
| def | period_or_cron (config) |
| def | validate_cron_pattern (pattern) |
Variables | |
| _LOGGER = logging.getLogger(__name__) | |
| CONFIG_SCHEMA | |
| DEFAULT_OFFSET = timedelta(hours=0) | |
| METER_CONFIG_SCHEMA | |
Support for tracking consumption over given periods of time.
| bool homeassistant.components.utility_meter.async_migrate_entry | ( | HomeAssistant | hass, |
| ConfigEntry | config_entry | ||
| ) |
Migrate old entry.
Definition at line 259 of file __init__.py.
| bool homeassistant.components.utility_meter.async_setup | ( | HomeAssistant | hass, |
| ConfigType | config | ||
| ) |
Set up an Utility Meter.
Definition at line 111 of file __init__.py.
| bool homeassistant.components.utility_meter.async_setup_entry | ( | HomeAssistant | hass, |
| ConfigEntry | entry | ||
| ) |
Set up Utility Meter from a config entry.
Definition at line 194 of file __init__.py.
| bool homeassistant.components.utility_meter.async_unload_entry | ( | HomeAssistant | hass, |
| ConfigEntry | entry | ||
| ) |
Unload a config entry.
Definition at line 244 of file __init__.py.
| None homeassistant.components.utility_meter.config_entry_update_listener | ( | HomeAssistant | hass, |
| ConfigEntry | entry | ||
| ) |
Update listener, called when the config entry options are changed.
Definition at line 238 of file __init__.py.
| def homeassistant.components.utility_meter.max_28_days | ( | config | ) |
Check that time period does not include more than 28 days.
Definition at line 73 of file __init__.py.
| def homeassistant.components.utility_meter.period_or_cron | ( | config | ) |
Check that if cron pattern is used, then meter type and offsite must be removed.
Definition at line 58 of file __init__.py.
| def homeassistant.components.utility_meter.validate_cron_pattern | ( | pattern | ) |
Check that the pattern is well-formed.
Definition at line 48 of file __init__.py.
|
private |
Definition at line 43 of file __init__.py.
| homeassistant.components.utility_meter.CONFIG_SCHEMA |
Definition at line 106 of file __init__.py.
| homeassistant.components.utility_meter.DEFAULT_OFFSET = timedelta(hours=0) |
Definition at line 45 of file __init__.py.
| homeassistant.components.utility_meter.METER_CONFIG_SCHEMA |
Definition at line 83 of file __init__.py.