diff --git a/common/src/main/java/io/homeassistant/companion/android/common/sensors/NfcSensorManager.kt b/common/src/main/java/io/homeassistant/companion/android/common/sensors/NfcSensorManager.kt index 1c4ea25fec9..a9738b62e52 100755 --- a/common/src/main/java/io/homeassistant/companion/android/common/sensors/NfcSensorManager.kt +++ b/common/src/main/java/io/homeassistant/companion/android/common/sensors/NfcSensorManager.kt @@ -11,8 +11,8 @@ class NfcSensorManager : SensorManager { val nfcStateSensor = SensorManager.BasicSensor( "nfc_state", "binary_sensor", - commonR.string.sensor_name_nfc_sensor, - commonR.string.sensor_description_nfc_sensor, + commonR.string.basic_sensor_name_nfc_state, + commonR.string.sensor_description_nfc_state, "mdi:nfc-variant", entityCategory = SensorManager.ENTITY_CATEGORY_DIAGNOSTIC, updateType = SensorManager.BasicSensor.UpdateType.INTENT @@ -20,7 +20,7 @@ class NfcSensorManager : SensorManager { } override fun docsLink() = "https://companion.home-assistant.io/docs/core/sensors#nfc-state-sensor" - override val name = commonR.string.sensor_name_nfc_sensor + override val name = commonR.string.sensor_name_nfc override suspend fun getAvailableSensors(context: Context) = listOf(nfcStateSensor) diff --git a/common/src/main/res/values/strings.xml b/common/src/main/res/values/strings.xml index 0798226ba41..f9baf517015 100644 --- a/common/src/main/res/values/strings.xml +++ b/common/src/main/res/values/strings.xml @@ -96,6 +96,7 @@ Mobile data Mobile Rx GB Mobile Tx GB + NFC state Phone state Power save Public IP address @@ -611,6 +612,7 @@ Total Tx GB on cellular data since last device reboot Whether music is actively playing on the device The date and time of the next scheduled alarm, any app or manufacturer can override the default behavior. The package attribute will tell you which app set the next scheduled alarm. The setting below will create an Allow List so you can specify what packages you want the alarm event from. This will ignore alarm events for packages not selected and the state will not update until the next scheduled alarm matches one of the selected packages. + Whether NFC is enabled on the device No description Whether the phone is ringing or in a call, no other caller information is stored Whether the device is in Power Save mode @@ -1124,8 +1126,7 @@ The total number of calories over a day (including both BMR and active calories), where the previous day ends and a new day begins at 12:00 AM local time. Daily steps The total step count over a day, where the previous day ends and a new day begins at 12:00 AM local time. - NFC state - Whether NFC is enabled on the device + NFC sensor Sync Thread credentials Syncing… An unexpected error occurred while syncing