Skip to content

Commit

Permalink
Fix update type identification on some network sensors (#4666)
Browse files Browse the repository at this point in the history
  • Loading branch information
dshokouhi authored Sep 24, 2024
1 parent 0ed3da4 commit fbee642
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,7 @@ class NetworkSensorManager : SensorManager {
"mdi:wifi-strength-3",
unitOfMeasurement = "Mbps",
stateClass = SensorManager.STATE_CLASS_MEASUREMENT,
entityCategory = SensorManager.ENTITY_CATEGORY_DIAGNOSTIC,
updateType = SensorManager.BasicSensor.UpdateType.INTENT
entityCategory = SensorManager.ENTITY_CATEGORY_DIAGNOSTIC
)
val wifiState = SensorManager.BasicSensor(
"wifi_state",
Expand Down Expand Up @@ -108,8 +107,7 @@ class NetworkSensorManager : SensorManager {
deviceClass = "signal_strength",
unitOfMeasurement = "dBm",
stateClass = SensorManager.STATE_CLASS_MEASUREMENT,
entityCategory = SensorManager.ENTITY_CATEGORY_DIAGNOSTIC,
updateType = SensorManager.BasicSensor.UpdateType.INTENT
entityCategory = SensorManager.ENTITY_CATEGORY_DIAGNOSTIC
)
val publicIp = SensorManager.BasicSensor(
"public_ip_address",
Expand Down

0 comments on commit fbee642

Please sign in to comment.