Closed treban closed 4 years ago
Would you mind adding some tests for the generic device as well for the new device?
Oh, and please fix the existing tests ;-)
of course :)
the checks are implemented. i have added in the generic tests all attributes which are not tested elsewhere. co2,temp,humi were already separated.
the temperature test file tests the lowbattery attribute. the generic test checks the new battery attribute, which also returns a BATTERY_LEVEL_LOW at under 20%.
i have added the multi-sensor device from raspbee to the generic device. although contact and presence are double, but now all devices with the corresponding attributes are supported , not only if the correct template is used, like the multi-sensor device.
if this is not ok, I would create a extra accessory.