Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
10 changes: 6 additions & 4 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,16 @@ Development:
- Changes should be made on branches and merged to main thru pull requests.
- Pull requests should only be merged when CI passes.
- Commits should be small and complete.
- Don't reference Claude or Anthropic in commit messages.
- Don't reference Claude or Anthropic in commit messages or pull request
descriptions.
- I'm serious. Don't add "created with Claude Code" annotations and the like to
anything. It's annoying noise.
- Tests and lint (ruff, ty) should pass before committing.
- Never use `git push --force`. Use `--force-with-lease` instead.
- Strive for total behavioral coverage, but 100% structural coverage isn't
worthwhile.
- Changing the version in `custom_component/consumable_tracker/manifest.json`
will generate a new release. It will also drive changes to the `uv.lock`
that should also be committed.
- Changing the version in `custom_components/consumable_tracker/manifest.json`
will generate a new release.
- Versioning follows semantic versioning conventions.
- Changes to the integration should avoid breaking the
[blueprint](https://www.home-assistant.io/docs/blueprint/) in
Expand Down
5 changes: 3 additions & 2 deletions blueprints/automation/consumable_notification.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ variables:
is_warning: "{{ days_remaining <= warning_days and days_remaining > 0 }}"
is_depleted: "{{ days_remaining == 0 }}"
is_normal: "{{ days_remaining > warning_days }}"
device_link: "[{{ device_name }}](/config/devices/device/{{ device_id(consumable_sensor) }})"

actions:
- choose:
Expand All @@ -56,7 +57,7 @@ actions:
- action: persistent_notification.create
data:
title: "{{ display_name }} Needs Replacement"
message: "{{ display_name }} is due for replacement."
message: "{{ device_link }} {{ consumable_name }} is due for replacement."
notification_id: "{{ notification_id }}"
- conditions:
- condition: template
Expand All @@ -65,7 +66,7 @@ actions:
- action: persistent_notification.create
data:
title: "{{ display_name }} Replacement Soon"
message: "{{ display_name }} has {{ days_remaining }} days remaining."
message: "{{ device_link }} {{ consumable_name }} has {{ days_remaining }} days remaining."
notification_id: "{{ notification_id }}"
- conditions:
- condition: template
Expand Down
2 changes: 1 addition & 1 deletion custom_components/consumable_tracker/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
"iot_class": "calculated",
"issue_tracker": "https://github.com/thetic/hass-consumable-tracker/issues",
"requirements": [],
"version": "0.2.3"
"version": "0.2.4"
}