Skip to content

fix humidity setters to handle unexpected data#62

Merged
Prominence merged 1 commit intoProminence:masterfrom
pmartinot-tech:features/fix-humidity-range
Feb 9, 2026
Merged

fix humidity setters to handle unexpected data#62
Prominence merged 1 commit intoProminence:masterfrom
pmartinot-tech:features/fix-humidity-range

Conversation

@pmartinot-tech
Copy link
Contributor

fix humidity to handle unexpected data

it may happen that as a result of current weather api call we get humidity data such as this one (more than 100)

image

previous implementation was throwing an exception which does not allow clients of the library to handle it gracefully

the PR suggests to round the data to min 0 or max 100

@boblepepeur
Copy link

@Prominence my colleague made the fix

Copy link
Owner

@Prominence Prominence left a comment

Choose a reason for hiding this comment

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

Looks good

@Prominence Prominence merged commit ec4f6af into Prominence:master Feb 9, 2026
@Prominence
Copy link
Owner

I'll release a new version soon

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