Skip to content

Commit

Permalink
Revert "Setting a special polling interval for challenge sensor"
Browse files Browse the repository at this point in the history
This reverts commit 5c5d52c.
  • Loading branch information
valleedelisle committed Jan 4, 2022
1 parent 7c432bc commit 7b08902
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 0 additions & 2 deletions custom_components/hilo/const.py
Expand Up @@ -26,8 +26,6 @@
DEFAULT_SCAN_INTERVAL = 60
MIN_SCAN_INTERVAL = 15

CHALLENGE_SENSOR_INTERVAL = 300

CONF_TARIFF = {
"rate d": {
"low_threshold": 40,
Expand Down
3 changes: 1 addition & 2 deletions custom_components/hilo/sensor.py
Expand Up @@ -42,7 +42,6 @@

from . import Hilo, HiloEntity
from .const import (
CHALLENGE_SENSOR_INTERVAL,
CONF_ENERGY_METER_PERIOD,
CONF_GENERATE_ENERGY_METERS,
CONF_HQ_PLAN_NAME,
Expand Down Expand Up @@ -93,7 +92,7 @@ def generate_entities_from_device(device, hilo, scan_interval):
entities = []
if device.type == "Gateway":
entities.append(
HiloChallengeSensor(hilo, device, CHALLENGE_SENSOR_INTERVAL),
HiloChallengeSensor(hilo, device, scan_interval),
)
entities.append(
HiloRewardSensor(hilo, device, scan_interval),
Expand Down

0 comments on commit 7b08902

Please sign in to comment.