old_contents: """Models for WLED."""
  from homeassistant.helpers.device_registry import CONNECTION_NETWORK_MAC
  from homeassistant.helpers.entity import DeviceInfo
  from homeassistant.helpers.update_coordinator import CoordinatorEntity
  
  from .const import DOMAIN
  from .coordinator import WLEDDataUpdateCoordinator
  
  
  class WLEDEntity(CoordinatorEntity):
      """Defines a base WLED entity."""
  
      coordinator: WLEDDataUpdateCoordinator
  
      @property
      def device_info(self) -> DeviceInfo:
          """Return device information about this WLED device."""
          return DeviceInfo(
              connections={
                  (CONNECTION_NETWORK_MAC, self.coordinator.data.info.mac_address)
              },
              identifiers={(DOMAIN, self.coordinator.data.info.mac_address)},
              name=self.coordinator.data.info.name,
              manufacturer=self.coordinator.data.info.brand,
              model=self.coordinator.data.info.product,
              sw_version=str(self.coordinator.data.info.version),
              configuration_url=f"http://{self.coordinator.wled.host}",
          )
  
new_contents: """Models for WLED."""
  from homeassistant.helpers.device_registry import CONNECTION_NETWORK_MAC
  from homeassistant.helpers.entity import DeviceInfo
  from homeassistant.helpers.update_coordinator import CoordinatorEntity
  
  from .const import DOMAIN
  from .coordinator import WLEDDataUpdateCoordinator
  
  
  class WLEDEntity(CoordinatorEntity):
      """Defines a base WLED entity."""
  
      coordinator: WLEDDataUpdateCoordinator
  
      @property
      def device_info(self) -> DeviceInfo:
          """Return device information about this WLED device."""
          return DeviceInfo(
              connections={
                  (CONNECTION_NETWORK_MAC, self.coordinator.data.info.mac_address)
              },
              identifiers={(DOMAIN, self.coordinator.data.info.mac_address)},
              name=self.coordinator.data.info.name,
              manufacturer=self.coordinator.data.info.brand,
              model=self.coordinator.data.info.product,
              sw_version=str(self.coordinator.data.info.version),
              hw_version=self.coordinator.data.info.architecture,
              configuration_url=f"http://{self.coordinator.wled.host}",
          )
  
subject: Add WLED hw version to device info (#64924)