myio-js-library 0.1.208 → 0.1.209

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.
package/dist/index.cjs CHANGED
@@ -12143,6 +12143,10 @@ function renderCardComponentV5({
12143
12143
  const isTemperatureDevice = (deviceType2) => isTemperatureDeviceType(deviceType2);
12144
12144
  const formatCardValue = (value, deviceType2) => {
12145
12145
  const numValue = Number(value) || 0;
12146
+ const category = getDeviceCategory(deviceType2);
12147
+ if (category !== "energy" && category !== "temperature") {
12148
+ console.log(`[template-card-v5] formatCardValue: deviceType=${deviceType2}, category=${category}, isEnergy=${isEnergyDevice(deviceType2)}`);
12149
+ }
12146
12150
  if (isEnergyDevice(deviceType2)) {
12147
12151
  return formatEnergy(numValue);
12148
12152
  } else if (isTemperatureDevice(deviceType2)) {
package/dist/index.js CHANGED
@@ -11971,6 +11971,10 @@ function renderCardComponentV5({
11971
11971
  const isTemperatureDevice = (deviceType2) => isTemperatureDeviceType(deviceType2);
11972
11972
  const formatCardValue = (value, deviceType2) => {
11973
11973
  const numValue = Number(value) || 0;
11974
+ const category = getDeviceCategory(deviceType2);
11975
+ if (category !== "energy" && category !== "temperature") {
11976
+ console.log(`[template-card-v5] formatCardValue: deviceType=${deviceType2}, category=${category}, isEnergy=${isEnergyDevice(deviceType2)}`);
11977
+ }
11974
11978
  if (isEnergyDevice(deviceType2)) {
11975
11979
  return formatEnergy(numValue);
11976
11980
  } else if (isTemperatureDevice(deviceType2)) {
@@ -11959,6 +11959,10 @@
11959
11959
  const isTemperatureDevice = (deviceType2) => isTemperatureDeviceType(deviceType2);
11960
11960
  const formatCardValue = (value, deviceType2) => {
11961
11961
  const numValue = Number(value) || 0;
11962
+ const category = getDeviceCategory(deviceType2);
11963
+ if (category !== "energy" && category !== "temperature") {
11964
+ console.log(`[template-card-v5] formatCardValue: deviceType=${deviceType2}, category=${category}, isEnergy=${isEnergyDevice(deviceType2)}`);
11965
+ }
11962
11966
  if (isEnergyDevice(deviceType2)) {
11963
11967
  return formatEnergy(numValue);
11964
11968
  } else if (isTemperatureDevice(deviceType2)) {