Open dpmurphy opened 3 years ago
AddStatusGraphicForRange does not exist in the SDK, please provide valid code to reproduce the problem.
string img = "/images/HomeSeer/status/Thermometer-100.png"
ValueRange range = new ValueRange(rangeMin, RangeMax);
if (feat.HasGraphicForRange(range)) {
hs.DeleteStatusGraphicByValue(dev.RefId, range.Min);
}
var statusGraphic = new StatusGraphic(img, range);
hs.AddStatusGraphicToFeature(dev.RefId, statusGraphic);
Thanks. Tracked as HS-1369
Environment and System Config
Describe the issue Creating an overlapping StatusGraphicRange fails silently
Range 1 96 - 105.9999999 Range 2 105 - 150.9999999 (overlapping)
Steps to Reproduce Steps to reproduce the behavior:
Expected behavior The sdk should return a bool (false), or throw an exception or log to console, something to indicate the request (correctly) failed....silent failures should not be allowed.