@riddix/hamh 2.1.0-alpha.590 → 2.1.0-alpha.591

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.
@@ -174087,10 +174087,14 @@ var SpeakerEndpointType = SpeakerDevice.with(
174087
174087
  );
174088
174088
  function MediaPlayerDevice(homeAssistantEntity) {
174089
174089
  const attributes7 = homeAssistantEntity.entity.state.attributes;
174090
- const supportedFeatures = attributes7.supported_features ?? 0;
174091
174090
  if (attributes7.device_class === MediaPlayerDeviceClass.Tv) {
174092
174091
  return VideoPlayerDevice(homeAssistantEntity);
174093
174092
  }
174093
+ return SpeakerMediaPlayerDevice(homeAssistantEntity);
174094
+ }
174095
+ function SpeakerMediaPlayerDevice(homeAssistantEntity) {
174096
+ const attributes7 = homeAssistantEntity.entity.state.attributes;
174097
+ const supportedFeatures = attributes7.supported_features ?? 0;
174094
174098
  let device = SpeakerEndpointType;
174095
174099
  const supportsPower = testBit(supportedFeatures, MediaPlayerDeviceFeature.TURN_ON) && testBit(supportedFeatures, MediaPlayerDeviceFeature.TURN_OFF);
174096
174100
  const supportsMute = testBit(
@@ -178756,7 +178760,7 @@ var matterDeviceTypeFactories = {
178756
178760
  air_purifier: AirPurifierEndpoint,
178757
178761
  robot_vacuum_cleaner: (ha) => VacuumDevice(ha),
178758
178762
  humidifier_dehumidifier: HumidifierDevice,
178759
- speaker: MediaPlayerDevice,
178763
+ speaker: SpeakerMediaPlayerDevice,
178760
178764
  basic_video_player: VideoPlayerDevice,
178761
178765
  humidity_sensor: (ha) => HumiditySensorType.set({ homeAssistantEntity: ha }),
178762
178766
  temperature_sensor: (ha) => TemperatureSensorType.set({ homeAssistantEntity: ha }),