mirror of
https://github.com/home-assistant/core.git
synced 2026-09-08 10:06:18 -05:00
* Turn Ring Doorbell and Chime volumes into number entities.
* turn RingOther volumes into numbers as well
* fix linter issues
* move other volume strings into `number` section
* add back old volume sensors but deprecate them
* add tests for `ring.number`
* add back strings for sensors that have just become deprecated
* remove deprecated volume sensors from test
* Revert "remove deprecated volume sensors from test"
This reverts commit fc95af66e7.
* create entities for deprecated sensors so that tests still run
* remove print
* add entities immediately
* move `RingNumberEntityDescription` above `RingNumber` and remove unused import
* remove irrelevant comment about history
* fix not using `setter_fn`
* add missing icons for other volume entities
* rename `entity` -> `entity_id` in number tests
* fix typing in number test
* use constants for `hass.services.async_call()`
* use `@refresh_after` decorator instead of delaying updates manually
* move descriptors above entity class
* Use snapshot to test states.
* add missing snapshot file for number platform
* Update homeassistant/components/ring/number.py
Co-authored-by: Steven B. <51370195+sdb9696@users.noreply.github.com>
---------
Co-authored-by: Steven B. <51370195+sdb9696@users.noreply.github.com>
122 lines
3.0 KiB
JSON
122 lines
3.0 KiB
JSON
{
|
|
"config": {
|
|
"step": {
|
|
"user": {
|
|
"title": "Sign-in with Ring account",
|
|
"data": {
|
|
"username": "[%key:common::config_flow::data::username%]",
|
|
"password": "[%key:common::config_flow::data::password%]"
|
|
}
|
|
},
|
|
"2fa": {
|
|
"title": "Two-factor authentication",
|
|
"data": {
|
|
"2fa": "Two-factor code"
|
|
}
|
|
},
|
|
"reauth_confirm": {
|
|
"title": "[%key:common::config_flow::title::reauth%]",
|
|
"description": "The Ring integration needs to re-authenticate your account {username}",
|
|
"data": {
|
|
"password": "[%key:common::config_flow::data::password%]"
|
|
}
|
|
}
|
|
},
|
|
"error": {
|
|
"invalid_auth": "[%key:common::config_flow::error::invalid_auth%]",
|
|
"unknown": "[%key:common::config_flow::error::unknown%]"
|
|
},
|
|
"abort": {
|
|
"already_configured": "[%key:common::config_flow::abort::already_configured_account%]",
|
|
"reauth_successful": "[%key:common::config_flow::abort::reauth_successful%]"
|
|
}
|
|
},
|
|
"entity": {
|
|
"binary_sensor": {
|
|
"ding": {
|
|
"name": "Ding"
|
|
},
|
|
"motion": {
|
|
"name": "Motion"
|
|
}
|
|
},
|
|
"event": {
|
|
"ding": {
|
|
"name": "Ding"
|
|
},
|
|
"intercom_unlock": {
|
|
"name": "Intercom unlock"
|
|
}
|
|
},
|
|
"button": {
|
|
"open_door": {
|
|
"name": "Open door"
|
|
}
|
|
},
|
|
"light": {
|
|
"light": {
|
|
"name": "[%key:component::light::title%]"
|
|
}
|
|
},
|
|
"number": {
|
|
"volume": {
|
|
"name": "Volume"
|
|
},
|
|
"doorbell_volume": {
|
|
"name": "Doorbell volume"
|
|
},
|
|
"mic_volume": {
|
|
"name": "Mic volume"
|
|
},
|
|
"voice_volume": {
|
|
"name": "Voice volume"
|
|
}
|
|
},
|
|
"siren": {
|
|
"siren": {
|
|
"name": "[%key:component::siren::title%]"
|
|
}
|
|
},
|
|
"sensor": {
|
|
"last_activity": {
|
|
"name": "Last activity"
|
|
},
|
|
"last_ding": {
|
|
"name": "Last ding"
|
|
},
|
|
"last_motion": {
|
|
"name": "Last motion"
|
|
},
|
|
"volume": {
|
|
"name": "Volume"
|
|
},
|
|
"doorbell_volume": {
|
|
"name": "Doorbell volume"
|
|
},
|
|
"mic_volume": {
|
|
"name": "Mic volume"
|
|
},
|
|
"voice_volume": {
|
|
"name": "Voice volume"
|
|
},
|
|
"wifi_signal_category": {
|
|
"name": "Wi-Fi signal category"
|
|
},
|
|
"wifi_signal_strength": {
|
|
"name": "Wi-Fi signal strength"
|
|
}
|
|
},
|
|
"switch": {
|
|
"siren": {
|
|
"name": "[%key:component::siren::title%]"
|
|
}
|
|
}
|
|
},
|
|
"issues": {
|
|
"deprecated_entity": {
|
|
"title": "Detected deprecated `{platform}` entity usage",
|
|
"description": "We detected that entity `{entity}` is being used in `{info}`\n\nWe have created a new `{new_platform}` entity and you should migrate `{info}` to use this new entity.\n\nWhen you are done migrating `{info}` and are ready to have the deprecated `{entity}` entity removed, disable the entity and restart Home Assistant."
|
|
}
|
|
}
|
|
}
|