Closed XaF closed 1 year ago
Coverage Report
File Stmts Miss Cover Missing apps/qolsysgw gateway.py 168 35 79% 95–96, 131–154, 162, 187–188, 207–208, 220–221, 232–233, 242–243, 252–253, 259, 279–280 apps/qolsysgw/mqtt exceptions.py 17 0 100% listener.py 53 8 85% 42–44, 68–70, 74–75 updater.py 246 7 97% 172, 220, 223, 342, 393, 479, 556 utils.py 5 0 100% apps/qolsysgw/qolsys actions.py 50 2 96% 24, 34 config.py 70 13 81% 63–64, 66, 70, 75, 90–102, 112, 120, 146 control.py 151 7 95% 39, 47, 51, 58, 65, 81, 88 events.py 232 21 91% 64, 69, 100, 104, 130–131, 163, 167, 190, 201, 208, 235, 251, 265, 278–280, 325, 357, 369, 414 exceptions.py 29 0 100% observable.py 17 3 82% 13, 17–18 partition.py 125 8 94% 151, 156–160, 166–170, 173 sensors.py 235 22 91% 60, 67–88, 101, 160, 218, 222, 229, 246, 250 socket.py 95 19 80% 36, 43, 52–54, 83–84, 103–105, 109–110, 114–116, 126–127, 133–134 state.py 69 7 90% 24, 67–70, 80, 88 utils.py 47 4 91% 11, 14, 20–21 TOTAL 1609 156 90%
Tests | Skipped | Failures | Errors | Time |
---|---|---|---|---|
120 | 0 :zzz: | 0 :x: | 0 :fire: | 33.274s :stopwatch: |
Some sensors like TakeoverModules and Translators will create extra sensors which share exactly the same sensor ID as the module. This makes sure that every sensor has a unique ID by adding back the zone ID after the sensor ID when the sensor is not the first one which that ID. This will ensure that we can still keep cross-installation sensors for the main sensors, but handle deduplication when using such modules.
Fixes https://github.com/XaF/qolsysgw/issues/108