test the newly added device fixtures (#21)

* make fixture detection saner
* allow scrubbed locations
This commit is contained in:
Teemu R
2020-01-14 19:16:30 +01:00
committed by GitHub
parent 4a4b9c655a
commit 7eea21f2dd
3 changed files with 45 additions and 32 deletions

View File

@@ -73,10 +73,10 @@ PLUG_SCHEMA = Schema(
"hw_ver": str,
"icon_hash": str,
"led_off": check_int_bool,
"latitude": Any(All(float, Range(min=-90, max=90)), None),
"latitude_i": Any(All(float, Range(min=-90, max=90)), None),
"longitude": Any(All(float, Range(min=-180, max=180)), None),
"longitude_i": Any(All(float, Range(min=-180, max=180)), None),
"latitude": Any(All(float, Range(min=-90, max=90)), 0, None),
"latitude_i": Any(All(float, Range(min=-90, max=90)), 0, None),
"longitude": Any(All(float, Range(min=-180, max=180)), 0, None),
"longitude_i": Any(All(float, Range(min=-180, max=180)), 0, None),
"mac": check_mac,
"model": str,
"oemId": str,