Skip to content

fix(translations): correct inverted French notifications switch label (#114)#116

Merged
kmich merged 2 commits into
mainfrom
claude/serene-lederberg-65f104
Jun 30, 2026
Merged

fix(translations): correct inverted French notifications switch label (#114)#116
kmich merged 2 commits into
mainfrom
claude/serene-lederberg-65f104

Conversation

@kmich

@kmich kmich commented Jun 30, 2026

Copy link
Copy Markdown
Owner

Description

Fixes the French label of the ws_suppress_notifications switch, which was the opposite of its actual behaviour.

The switch uses inverted=True logic (switch.py): switch ON = notifications enabled (suppress_notifications=False). English and every other locale (de/es/it/nl/pl/pt) label it "Enable HA Notifications", matching the behaviour. French alone read "Bloquer les notifications HA" ("Block HA notifications") - the opposite meaning.

As a result, a French user who turned the switch ON to block notifications was actually setting suppress=False and enabling them. HA Repairs alerts (e.g. the stale-sensor warning) kept appearing, which is exactly the behaviour reported.

The coordinator gating in coordinator.py (if self.suppress_notifications: delete all issues) was correct all along; only the French label was wrong.

Related Issue

Closes #114

Motivation and Context

The reporter writes in French and followed the French label, getting the inverse of the intended effect.

How Has This Been Tested?

  • python -m pytest -q → 259 passed
  • fr.json validated as parseable JSON
  • Verified the label is now consistent with the inverted=True switch logic and all other locales

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Checklist:

  • My code follows the code style of this project
  • I have updated the documentation accordingly (if needed)
  • I have added tests to cover my changes (if applicable)
  • All new and existing tests passed
  • I have updated CHANGELOG.md with my changes

🤖 Generated with Claude Code

kmich and others added 2 commits June 30, 2026 07:55
…#114)

The ws_suppress_notifications switch uses inverted logic (ON = notifications
enabled, suppress=False). English and all other locales label it "Enable HA
Notifications", but French read "Bloquer les notifications HA" (Block), the
opposite meaning. French users turning the switch ON to block notifications
were actually enabling them, so HA Repairs alerts (e.g. stale-sensor warnings)
kept appearing.

Relabel to "Activer les notifications HA" to match the switch behaviour and
every other locale.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
@kmich
kmich merged commit b1dee11 into main Jun 30, 2026
10 checks passed
@kmich
kmich deleted the claude/serene-lederberg-65f104 branch July 9, 2026 06:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Notifications still appear even when they are disabled

1 participant