Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions custom_components/plugwise_usb/number.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,18 @@ class PlugwiseNumberEntityDescription(
async_number_type="float",
mode="box",
),
PlugwiseNumberEntityDescription(
key="report_interval",
translation_key="sense_report_interval",
async_number_fn="set_report_interval",
node_feature=NodeFeature.SENSE_HYSTERESIS,
device_class=NumberDeviceClass.DURATION,
native_unit_of_measurement=UnitOfTime.MINUTES,
entity_category=EntityCategory.CONFIG,
native_max_value=60,
native_min_value=1,
mode="box",
),
)


Expand Down
3 changes: 3 additions & 0 deletions custom_components/plugwise_usb/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,9 @@
},
"sense_temperature_lower_bound": {
"name": "Temperature lower boundary value"
},
"sense_report_interval": {
"name": "Measurement report interval"
}
},
"button": {
Expand Down
3 changes: 3 additions & 0 deletions custom_components/plugwise_usb/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,9 @@
},
"sense_temperature_lower_bound": {
"name": "Temperature lower boundary value"
},
"sense_report_interval": {
"name": "Measurement report interval"
}
},
"button": {
Expand Down
3 changes: 3 additions & 0 deletions custom_components/plugwise_usb/translations/nl.json
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,9 @@
},
"sense_temperature_lower_bound": {
"name": "Lage schakelpunt temperatuur"
},
"sense_report_interval": {
"name": "Meetraportage interval"
}
},
"button": {
Expand Down
2 changes: 0 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -544,8 +544,6 @@ ignore = [

"TRY003", # Avoid specifying long messages outside the exception class
"TRY400", # Use `logging.exception` instead of `logging.error`
# Ignored due to performance: https://github.com/charliermarsh/ruff/issues/2923
"UP038", # Use `X | Y` in `isinstance` call instead of `(X, Y)`

# May conflict with the formatter, https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules
"W191",
Expand Down
Loading