@riddix/hamh 2.1.0-alpha.622 → 2.1.0-alpha.623

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -172334,7 +172334,17 @@ var DEVICE_CLASS_TO_MATTER_TYPE = {
172334
172334
  var deviceClassMapping = (entity) => {
172335
172335
  const raw = entity.attributes.device_class;
172336
172336
  if (typeof raw !== "string") return void 0;
172337
- return DEVICE_CLASS_TO_MATTER_TYPE[raw.toLowerCase()];
172337
+ const mapping = DEVICE_CLASS_TO_MATTER_TYPE[raw.toLowerCase()];
172338
+ if (!mapping) return void 0;
172339
+ const supportedFeatures = attributes5(entity).supported_features ?? 0;
172340
+ const hasTilt = (supportedFeatures & CoverSupportedFeatures.support_open_tilt) !== 0;
172341
+ if (mapping.type === WindowCovering3.WindowCoveringType.TiltBlindTiltOnly && !hasTilt) {
172342
+ return {
172343
+ type: WindowCovering3.WindowCoveringType.Rollershade,
172344
+ endProductType: mapping.endProductType
172345
+ };
172346
+ }
172347
+ return mapping;
172338
172348
  };
172339
172349
  var MATTER_SEMANTIC_PLATFORMS = [
172340
172350
  // Currently empty - no known platforms use Matter semantics by default