Skip to content

Conversation

xplato
Copy link
Contributor

@xplato xplato commented May 13, 2024

Screenshot 2024-05-14 at 9 13 24 AM

return `${Number(value).toFixed(0)} ${t.decibel}`
}

function getNoiseLevel(device: NoiseSensorDevice) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Function taken from Console

@xplato xplato marked this pull request as ready for review May 14, 2024 15:14
@xplato xplato requested review from razor-x, mikewuu and dawnho as code owners May 14, 2024 15:14
return t.unknown
}

function getNoiseLevel(device: NoiseSensorDevice): string {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we have a property device.properties.noise_level_decibles?

@razor-x
Copy link
Member

razor-x commented May 14, 2024

Ok to merge this now and replace the logic in a followup when the API property is ready.

@xplato xplato merged commit 6e7b790 into main May 14, 2024
@xplato xplato deleted the add-noise-sensor-level branch May 14, 2024 21:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants