Classes | |
| class | AmberUpdateCoordinator |
Functions | |
| bool | is_controlled_load (ActualInterval|CurrentInterval|ForecastInterval interval) |
| bool | is_current (ActualInterval|CurrentInterval|ForecastInterval interval) |
| bool | is_feed_in (ActualInterval|CurrentInterval|ForecastInterval interval) |
| bool | is_forecast (ActualInterval|CurrentInterval|ForecastInterval interval) |
| bool | is_general (ActualInterval|CurrentInterval|ForecastInterval interval) |
| str|None | normalize_descriptor (PriceDescriptor|None descriptor) |
Amber Electric Coordinator.
| bool homeassistant.components.amberelectric.coordinator.is_controlled_load | ( | ActualInterval | CurrentInterval | ForecastInterval | interval | ) |
Return true if the supplied interval is on the controlled load channel.
Definition at line 37 of file coordinator.py.
| bool homeassistant.components.amberelectric.coordinator.is_current | ( | ActualInterval | CurrentInterval | ForecastInterval | interval | ) |
Return true if the supplied interval is a CurrentInterval.
Definition at line 22 of file coordinator.py.
| bool homeassistant.components.amberelectric.coordinator.is_feed_in | ( | ActualInterval | CurrentInterval | ForecastInterval | interval | ) |
Return true if the supplied interval is on the feed in channel.
Definition at line 44 of file coordinator.py.
| bool homeassistant.components.amberelectric.coordinator.is_forecast | ( | ActualInterval | CurrentInterval | ForecastInterval | interval | ) |
Return true if the supplied interval is a ForecastInterval.
Definition at line 27 of file coordinator.py.
| bool homeassistant.components.amberelectric.coordinator.is_general | ( | ActualInterval | CurrentInterval | ForecastInterval | interval | ) |
Return true if the supplied interval is on the general channel.
Definition at line 32 of file coordinator.py.
| str | None homeassistant.components.amberelectric.coordinator.normalize_descriptor | ( | PriceDescriptor | None | descriptor | ) |
Return the snake case versions of descriptor names. Returns None if the name is not recognized.
Definition at line 49 of file coordinator.py.