Skip to content
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

Correctly identify entity category for sensors #2357

Merged
merged 1 commit into from
Mar 9, 2022
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class LocationSensorManager : LocationSensorManagerBase() {
"binary_sensor",
commonR.string.basic_sensor_name_high_accuracy_mode,
commonR.string.sensor_description_high_accuracy_mode,
entityCategory = SensorManager.ENTITY_CATEGORY_CONFIG
entityCategory = SensorManager.ENTITY_CATEGORY_DIAGNOSTIC
)
internal const val TAG = "LocBroadcastReceiver"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ class AudioSensorManager : SensorManager {
"audio_sensor",
"sensor",
commonR.string.sensor_name_ringer_mode,
commonR.string.sensor_description_audio_sensor,
entityCategory = SensorManager.ENTITY_CATEGORY_CONFIG
commonR.string.sensor_description_audio_sensor
)
private val audioState = SensorManager.BasicSensor(
"audio_mode",
Expand Down Expand Up @@ -54,28 +53,28 @@ class AudioSensorManager : SensorManager {
"sensor",
commonR.string.sensor_name_volume_alarm,
commonR.string.sensor_description_volume_alarm,
entityCategory = SensorManager.ENTITY_CATEGORY_CONFIG
entityCategory = SensorManager.ENTITY_CATEGORY_DIAGNOSTIC
)
private val volCall = SensorManager.BasicSensor(
"volume_call",
"sensor",
commonR.string.sensor_name_volume_call,
commonR.string.sensor_description_volume_call,
entityCategory = SensorManager.ENTITY_CATEGORY_CONFIG
entityCategory = SensorManager.ENTITY_CATEGORY_DIAGNOSTIC
)
private val volMusic = SensorManager.BasicSensor(
"volume_music",
"sensor",
commonR.string.sensor_name_volume_music,
commonR.string.sensor_description_volume_music,
entityCategory = SensorManager.ENTITY_CATEGORY_CONFIG
entityCategory = SensorManager.ENTITY_CATEGORY_DIAGNOSTIC
)
private val volRing = SensorManager.BasicSensor(
"volume_ring",
"sensor",
commonR.string.sensor_name_volume_ring,
commonR.string.sensor_description_volume_ring,
entityCategory = SensorManager.ENTITY_CATEGORY_CONFIG
entityCategory = SensorManager.ENTITY_CATEGORY_DIAGNOSTIC
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class BluetoothSensorManager : SensorManager {
"binary_sensor",
commonR.string.basic_sensor_name_bluetooth_state,
commonR.string.sensor_description_bluetooth_state,
entityCategory = SensorManager.ENTITY_CATEGORY_CONFIG
entityCategory = SensorManager.ENTITY_CATEGORY_DIAGNOSTIC
)
val bleTransmitter = SensorManager.BasicSensor(
"ble_emitter",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class DNDSensorManager : SensorManager {
"sensor",
commonR.string.sensor_name_dnd,
commonR.string.sensor_description_dnd_sensor,
entityCategory = SensorManager.ENTITY_CATEGORY_CONFIG
entityCategory = SensorManager.ENTITY_CATEGORY_DIAGNOSTIC
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class KeyguardSensorManager : SensorManager {
"binary_sensor",
commonR.string.basic_sensor_name_device_secure,
commonR.string.sensor_description_device_secure,
entityCategory = SensorManager.ENTITY_CATEGORY_CONFIG
entityCategory = SensorManager.ENTITY_CATEGORY_DIAGNOSTIC
)
val keyguardLocked = SensorManager.BasicSensor(
"keyguard_locked",
Expand All @@ -38,7 +38,7 @@ class KeyguardSensorManager : SensorManager {
"binary_sensor",
commonR.string.basic_sensor_name_keyguard_secure,
commonR.string.sensor_description_keyguard_secure,
entityCategory = SensorManager.ENTITY_CATEGORY_CONFIG
entityCategory = SensorManager.ENTITY_CATEGORY_DIAGNOSTIC
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ class MobileDataManager : SensorManager {
"binary_sensor",
commonR.string.basic_sensor_name_mobile_data,
commonR.string.sensor_description_mobile_data,
entityCategory = SensorManager.ENTITY_CATEGORY_CONFIG
entityCategory = SensorManager.ENTITY_CATEGORY_DIAGNOSTIC
)
val mobileDataRoaming = SensorManager.BasicSensor(
"mobile_data_roaming",
"binary_sensor",
commonR.string.basic_sensor_name_mobile_data_roaming,
commonR.string.sensor_description_mobile_data_roaming,
entityCategory = SensorManager.ENTITY_CATEGORY_CONFIG
entityCategory = SensorManager.ENTITY_CATEGORY_DIAGNOSTIC
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class NetworkSensorManager : SensorManager {
"binary_sensor",
commonR.string.basic_sensor_name_wifi_state,
commonR.string.sensor_description_wifi_state,
entityCategory = SensorManager.ENTITY_CATEGORY_CONFIG
entityCategory = SensorManager.ENTITY_CATEGORY_DIAGNOSTIC
)
val wifiFrequency = SensorManager.BasicSensor(
"wifi_frequency",
Expand Down