mirror of
https://github.com/home-assistant/core.git
synced 2025-07-10 14:57:09 +00:00
This reverts commit b5d55ce7bc8df13732d59a8975371feb291d5779.
This commit is contained in:
parent
f93d999260
commit
b14eeca99b
@ -37,16 +37,7 @@ from homeassistant.components.weather import (
|
|||||||
WeatherEntity,
|
WeatherEntity,
|
||||||
)
|
)
|
||||||
from homeassistant.config_entries import ConfigEntry
|
from homeassistant.config_entries import ConfigEntry
|
||||||
from homeassistant.const import (
|
from homeassistant.const import CONF_LATITUDE, CONF_LONGITUDE, CONF_NAME, TEMP_CELSIUS
|
||||||
CONF_LATITUDE,
|
|
||||||
CONF_LONGITUDE,
|
|
||||||
CONF_NAME,
|
|
||||||
LENGTH_METERS,
|
|
||||||
LENGTH_MILLIMETERS,
|
|
||||||
PRESSURE_HPA,
|
|
||||||
SPEED_METERS_PER_SECOND,
|
|
||||||
TEMP_CELSIUS,
|
|
||||||
)
|
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
||||||
|
|
||||||
@ -121,10 +112,6 @@ class BrWeather(WeatherEntity):
|
|||||||
"""Representation of a weather condition."""
|
"""Representation of a weather condition."""
|
||||||
|
|
||||||
_attr_temperature_unit = TEMP_CELSIUS
|
_attr_temperature_unit = TEMP_CELSIUS
|
||||||
_attr_pressure_unit = PRESSURE_HPA
|
|
||||||
_attr_visibility_unit = LENGTH_METERS
|
|
||||||
_attr_wind_speed_unit = SPEED_METERS_PER_SECOND
|
|
||||||
_attr_precipitation_unit = LENGTH_MILLIMETERS
|
|
||||||
|
|
||||||
def __init__(self, data, config, coordinates):
|
def __init__(self, data, config, coordinates):
|
||||||
"""Initialize the platform with a data instance and station name."""
|
"""Initialize the platform with a data instance and station name."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user