Skip to content

Commit

Permalink
Merge pull request #11 from Madj42/main
Browse files Browse the repository at this point in the history
Fix config flow and long term statistics errors
  • Loading branch information
dreed47 authored May 5, 2023
2 parents b4938cb + 8c5bca0 commit c1d64e1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion custom_components/redfin/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ async def async_step_init(
errors: Dict[str, str] = {}
# Grab all configured propert id's from the entity registry so we can populate the
# multi-select dropdown that will allow a user to remove a property.
entity_registry = await async_get(self.hass)
entity_registry = sync_get(self.hass)
entries = async_entries_for_config_entry(
entity_registry, self.config_entry.entry_id
)
Expand Down
1 change: 1 addition & 0 deletions custom_components/redfin/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@
CONF_SCAN_INTERVAL_MAX = 600

ICON = "mdi:home-variant"
STATE_CLASS_MEASUREMENT = "measurement"
2 changes: 1 addition & 1 deletion custom_components/redfin/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

from .const import (DEFAULT_NAME, DOMAIN, CONF_PROPERTIES, ATTRIBUTION, DEFAULT_SCAN_INTERVAL, CONF_PROPERTY_IDS,
ICON, CONF_PROPERTY_ID, ATTR_AMOUNT, ATTR_AMOUNT_FORMATTED, ATTR_ADDRESS, ATTR_FULL_ADDRESS,
ATTR_CURRENCY, ATTR_STREET_VIEW, ATTR_REDFIN_URL, RESOURCE_URL, ATTR_UNIT_OF_MEASUREMENT)
ATTR_CURRENCY, ATTR_STREET_VIEW, ATTR_REDFIN_URL, RESOURCE_URL, ATTR_UNIT_OF_MEASUREMENT, STATE_CLASS_MEASUREMENT)
from homeassistant.core import callback
from homeassistant.components.sensor import PLATFORM_SCHEMA, SensorEntity
from homeassistant.helpers.event import async_track_time_interval
Expand Down

0 comments on commit c1d64e1

Please sign in to comment.