Skip to content

Commit c1d64e1

Browse files
authored
Merge pull request #11 from Madj42/main
Fix config flow and long term statistics errors
2 parents b4938cb + 8c5bca0 commit c1d64e1

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

custom_components/redfin/config_flow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ async def async_step_init(
111111
errors: Dict[str, str] = {}
112112
# Grab all configured propert id's from the entity registry so we can populate the
113113
# multi-select dropdown that will allow a user to remove a property.
114-
entity_registry = await async_get(self.hass)
114+
entity_registry = sync_get(self.hass)
115115
entries = async_entries_for_config_entry(
116116
entity_registry, self.config_entry.entry_id
117117
)

custom_components/redfin/const.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,4 @@
2121
CONF_SCAN_INTERVAL_MAX = 600
2222

2323
ICON = "mdi:home-variant"
24+
STATE_CLASS_MEASUREMENT = "measurement"

custom_components/redfin/sensor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
from .const import (DEFAULT_NAME, DOMAIN, CONF_PROPERTIES, ATTRIBUTION, DEFAULT_SCAN_INTERVAL, CONF_PROPERTY_IDS,
1010
ICON, CONF_PROPERTY_ID, ATTR_AMOUNT, ATTR_AMOUNT_FORMATTED, ATTR_ADDRESS, ATTR_FULL_ADDRESS,
11-
ATTR_CURRENCY, ATTR_STREET_VIEW, ATTR_REDFIN_URL, RESOURCE_URL, ATTR_UNIT_OF_MEASUREMENT)
11+
ATTR_CURRENCY, ATTR_STREET_VIEW, ATTR_REDFIN_URL, RESOURCE_URL, ATTR_UNIT_OF_MEASUREMENT, STATE_CLASS_MEASUREMENT)
1212
from homeassistant.core import callback
1313
from homeassistant.components.sensor import PLATFORM_SCHEMA, SensorEntity
1414
from homeassistant.helpers.event import async_track_time_interval

0 commit comments

Comments
 (0)