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
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"