-
-
Notifications
You must be signed in to change notification settings - Fork 32k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ability to translate ENUM sensor states in Unifi integration #131921
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,6 +33,27 @@ | |
"reauth_successful": "[%key:common::config_flow::abort::reauth_successful%]" | ||
} | ||
}, | ||
"entity": { | ||
"sensor": { | ||
"device_state": { | ||
"state": { | ||
"disconnected": "Disconnected", | ||
"connected": "Connected", | ||
"pending": "Pending", | ||
"firmware_mismatch": "Firmware Mismatch", | ||
"upgrading": "Upgrading", | ||
"provisioning": "Provisioning", | ||
"heartbeat_missed": "Heartbeat Missed", | ||
"adopting": "Adopting", | ||
"deleting": "Deleting", | ||
"inform_error": "Inform Error", | ||
"adoption_failed": "Adoption Failed", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Use sentence case |
||
"isolated": "Isolated", | ||
"unknown": "Unknown" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. unknown should not be its own state. Rather, the entity should return |
||
} | ||
} | ||
} | ||
}, | ||
"options": { | ||
"abort": { | ||
"integration_not_setup": "UniFi integration is not set up" | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couldn't some states have references to already existing translations?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point, forgot about that.