Skip to content

Handle invalid formats from clients#387

Merged
ikalchev merged 3 commits intoikalchev:devfrom
bdraco:normalize_client_value
Oct 6, 2021
Merged

Handle invalid formats from clients#387
ikalchev merged 3 commits intoikalchev:devfrom
bdraco:normalize_client_value

Conversation

@bdraco
Copy link
Copy Markdown
Contributor

@bdraco bdraco commented Oct 3, 2021

Some clients (seen on iOS 15) mix and match True for 1 and False for 0
when setting state. We now cleanup the values from
the client to ensure internal state is always valid.

bdraco added 2 commits October 3, 2021 12:24
Some clients mix and match True for 1 and False for 0
when setting state. We now cleanup the values from
the client to ensure internal state is always valid.
@codecov
Copy link
Copy Markdown

codecov bot commented Oct 3, 2021

Codecov Report

Merging #387 (d432995) into dev (52e7659) will increase coverage by 0.03%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##              dev     #387      +/-   ##
==========================================
+ Coverage   91.69%   91.73%   +0.03%     
==========================================
  Files          20       20              
  Lines        2096     2104       +8     
  Branches      259      260       +1     
==========================================
+ Hits         1922     1930       +8     
  Misses        132      132              
  Partials       42       42              
Impacted Files Coverage Δ
pyhap/accessory.py 96.64% <100.00%> (ø)
pyhap/accessory_driver.py 92.25% <100.00%> (+0.05%) ⬆️
pyhap/characteristic.py 100.00% <100.00%> (ø)
pyhap/const.py 100.00% <100.00%> (ø)
pyhap/hap_handler.py 81.52% <100.00%> (ø)
pyhap/hap_protocol.py 99.38% <100.00%> (ø)
pyhap/loader.py 100.00% <100.00%> (ø)
pyhap/service.py 100.00% <100.00%> (ø)
pyhap/tlv.py 100.00% <100.00%> (ø)
pyhap/util.py 100.00% <100.00%> (ø)

@bdraco bdraco marked this pull request as ready for review October 3, 2021 23:20
@ikalchev ikalchev merged commit b84df62 into ikalchev:dev Oct 6, 2021
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.

2 participants