/**
 * @license
 * Copyright 2022-2026 Matter.js Authors
 * SPDX-License-Identifier: Apache-2.0
 */
import { UnitLocalization } from "@matter/types/clusters/unit-localization";
import { UnitLocalizationBehavior } from "./UnitLocalizationBehavior.js";
class UnitLocalizationServer extends UnitLocalizationBehavior.with("TemperatureUnit") {
  initialize() {
    if (this.state.temperatureUnit === void 0) {
      this.state.temperatureUnit = UnitLocalization.TempUnit.Celsius;
    }
    if (!this.state.supportedTemperatureUnits?.length) {
      this.state.supportedTemperatureUnits = [
        UnitLocalization.TempUnit.Celsius,
        UnitLocalization.TempUnit.Fahrenheit
      ];
    }
  }
}
export {
  UnitLocalizationServer
};
//# sourceMappingURL=UnitLocalizationServer.js.map
