Skip to content

Use floatval instead of intval for history values#3182

Merged
Sekiro-kost merged 1 commit intojeedom:4.5.3from
Sekiro-kost:4.5.3
Jan 8, 2026
Merged

Use floatval instead of intval for history values#3182
Sekiro-kost merged 1 commit intojeedom:4.5.3from
Sekiro-kost:4.5.3

Conversation

@Sekiro-kost
Copy link
Copy Markdown
Contributor

Replaced intval with floatval when rounding historical average, min, and max values to ensure decimal precision is preserved. This change affects the calculation and display of historical statistics in the cmd class.

Description

Suggested changelog entry

Related issues/external references

Fixes #

Types of changes

  • Bug fix (non-breaking change which fixes)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
    • This change is only breaking for integrators, not for external standards or end-users.
  • Documentation improvement

PR checklist

Replaced intval with floatval when rounding historical average, min, and max values to ensure decimal precision is preserved. This change affects the calculation and display of historical statistics in the cmd class.
@Sekiro-kost Sekiro-kost merged commit 24aab7f into jeedom:4.5.3 Jan 8, 2026
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