Skip to content

Commit

Permalink
v0.0.15: adding base_schedule_index_minutes attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroenterheerdt committed May 27, 2020
1 parent 533e4c0 commit ee6feb0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion custom_components/smart_irrigation/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
DOMAIN = "smart_irrigation"
NAME = "Smart Irrigation"
DOMAIN_DATA = f"{DOMAIN}_data"
VERSION = "0.0.14"
VERSION = "0.0.15"

ISSUE_URL = "https://github.com/jeroenterheerdt/HASmartIrrigation/issues"

Expand Down Expand Up @@ -47,6 +47,7 @@
CONF_MAXIMUM_DURATION = "maximum_duration"
CONF_FORCE_MODE_DURATION = "force_mode_duration"
CONF_ADJUSTED_RUN_TIME_MINUTES = "adjusted_run_time_minutes"
CONF_BASE_SCHEDULE_INDEX_MINUTES = "base_schedule_index_minutes"

# Events
EVENT_BUCKET_UPDATED = "smart_irrigation_bucket_updated_event"
Expand Down
2 changes: 2 additions & 0 deletions custom_components/smart_irrigation/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
CONF_LEAD_TIME,
CONF_MAXIMUM_DURATION,
CONF_ADJUSTED_RUN_TIME_MINUTES,
CONF_BASE_SCHEDULE_INDEX_MINUTES,
)
from .entity import SmartIrrigationEntity

Expand Down Expand Up @@ -245,6 +246,7 @@ def device_state_attributes(self):
CONF_PRECIPITATION_RATE: self.show_mm_or_inch_per_hour(
self.coordinator.precipitation_rate
),
CONF_BASE_SCHEDULE_INDEX_MINUTES: self.show_minutes(self.state),
}
elif self.type == TYPE_CURRENT_ADJUSTED_RUN_TIME:
return {
Expand Down

0 comments on commit ee6feb0

Please sign in to comment.