Use UnitOfSoundPressure in demo (#83584)

Co-authored-by: Shay Levy <levyshay1@gmail.com>
This commit is contained in:
epenet 2022-12-08 23:42:30 +01:00 committed by GitHub
parent 16f94e68b3
commit 51ea3ff400
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,9 +17,9 @@ from homeassistant.config_entries import ConfigEntry
from homeassistant.const import (
ATTR_ENTITY_ID,
EVENT_HOMEASSISTANT_START,
SOUND_PRESSURE_DB,
Platform,
UnitOfEnergy,
UnitOfSoundPressure,
UnitOfTemperature,
UnitOfVolume,
)
@ -161,7 +161,7 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
"min": 0,
"max": 10,
"name": "Allowed Noise",
"unit_of_measurement": SOUND_PRESSURE_DB,
"unit_of_measurement": UnitOfSoundPressure.DECIBEL,
}
}
},