Rename Particulate matter sensors to PM (#91384)

This commit is contained in:
Franck Nijhof 2023-04-14 09:43:15 +02:00 committed by GitHub
parent fc8c5f1bbd
commit ce16d8eeac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 67 additions and 105 deletions

View file

@ -19,9 +19,7 @@ async def test_async_setup_entry(hass: HomeAssistant) -> None:
"""Test a successful setup entry."""
await init_integration(hass)
state = hass.states.get(
"sensor.nettigo_air_monitor_sds011_particulate_matter_2_5_mm"
)
state = hass.states.get("sensor.nettigo_air_monitor_sds011_pm2_5")
assert state is not None
assert state.state != STATE_UNAVAILABLE
assert state.state == "11.0"