Skip to content

Commit

Permalink
Remove deprecated usage of IRRADIATION_WATTS_PER_SQUARE_METER
Browse files Browse the repository at this point in the history
  • Loading branch information
tijsverkoyen committed Jan 8, 2024
1 parent 338b4a3 commit ea2b245
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from homeassistant.helpers.update_coordinator import CoordinatorEntity
from homeassistant.components.sensor import SensorEntity, SensorDeviceClass, SensorStateClass
from homeassistant.const import UnitOfEnergy, UnitOfPower, UnitOfMass, IRRADIATION_WATTS_PER_SQUARE_METER
from homeassistant.const import UnitOfEnergy, UnitOfPower, UnitOfMass, UnitOfIrradiance

from ..const import DOMAIN

Expand Down Expand Up @@ -87,7 +87,7 @@ def device_class(self) -> str:

@property
def native_unit_of_measurement(self) -> str:
return IRRADIATION_WATTS_PER_SQUARE_METER
return UnitOfIrradiance.WATTS_PER_SQUARE_METER

@property
def state_class(self) -> str:
Expand Down

0 comments on commit ea2b245

Please sign in to comment.