Fix SmartThings dust sensor UoM (#139977)

This commit is contained in:
Joost Lekkerkerker 2025-03-06 17:52:05 +01:00 committed by GitHub
parent 6ba45a32c0
commit 9549b1488e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 9 additions and 4 deletions

View File

@ -951,6 +951,7 @@ UNITS = {
"F": UnitOfTemperature.FAHRENHEIT,
"lux": LIGHT_LUX,
"mG": None,
"μg/m^3": CONCENTRATION_MICROGRAMS_PER_CUBIC_METER,
}

View File

@ -146,10 +146,14 @@
},
"dustSensor": {
"dustLevel": {
"value": null
"value": 46,
"unit": "\u03bcg/m^3",
"timestamp": "2025-03-06T16:01:49.656000+00:00"
},
"fineDustLevel": {
"value": null
"value": 10,
"unit": "\u03bcg/m^3",
"timestamp": "2025-03-06T16:01:49.656000+00:00"
}
},
"thermostatCoolingSetpoint": {

View File

@ -1479,7 +1479,7 @@
'last_changed': <ANY>,
'last_reported': <ANY>,
'last_updated': <ANY>,
'state': 'unknown',
'state': '46',
})
# ---
# name: test_all_entities[da_ac_rac_100001][sensor.corridor_a_c_pm2_5-entry]
@ -1531,7 +1531,7 @@
'last_changed': <ANY>,
'last_reported': <ANY>,
'last_updated': <ANY>,
'state': 'unknown',
'state': '10',
})
# ---
# name: test_all_entities[da_ac_rac_100001][sensor.corridor_a_c_temperature-entry]