Skip to content

Commit d59e1ac

Browse files
committed
per version to 1.1.2
1 parent 4cf14c5 commit d59e1ac

File tree

5 files changed

+9
-7
lines changed

5 files changed

+9
-7
lines changed

README.md

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

1010
<img src="https://raw.githubusercontent.com/home-assistant/brands/master/custom_integrations/redfin/logo.png" width="40%">
1111

12-
### <span style="color:red">_This component requires HA Core version 2021.6.0.dev0 or greater!_</span>
12+
### <span style="color:red">_This component requires HA Core version 2021.6.0 or greater!_</span>
1313

1414
This is a _Custom Integration_ for [Home Assistant](https://www.home-assistant.io/). It uses the unofficial [Redfin](https://www.redfin.com) API to get property value estimates.
1515

custom_components/redfin/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
"codeowners": ["@dreed47"],
88
"requirements": ["redfin==0.1.1"],
99
"iot_class": "cloud_polling",
10-
"version": "1.1.1",
10+
"version": "1.1.2",
1111
"config_flow": true
1212
}

custom_components/redfin/sensor.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@
66
from redfin import Redfin
77
from homeassistant import config_entries, core
88

9-
from .const import (DEFAULT_NAME, DOMAIN, CONF_PROPERTIES, ATTRIBUTION,
9+
from .const import (DEFAULT_NAME, DOMAIN, CONF_PROPERTIES, ATTRIBUTION, DEFAULT_SCAN_INTERVAL,
1010
CONF_PROPERTY_IDS, ICON, CONF_PROPERTY_ID, ATTR_AMOUNT, ATTR_AMOUNT_FORMATTED,
1111
ATTR_ADDRESS, ATTR_FULL_ADDRESS, ATTR_CURRENCY, ATTR_STREET_VIEW, ATTR_REDFIN_URL)
12-
#from homeassistant.helpers.aiohttp_client import async_get_clientsession
1312
from homeassistant.core import callback
1413
from homeassistant.components.sensor import PLATFORM_SCHEMA, SensorEntity
1514
from homeassistant.helpers.event import async_track_time_interval
@@ -23,6 +22,8 @@
2322
PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
2423
{
2524
vol.Required(CONF_PROPERTY_IDS): vol.All(cv.ensure_list, [cv.string]),
25+
vol.Optional(CONF_SCAN_INTERVAL, default=DEFAULT_SCAN_INTERVAL
26+
): vol.All(vol.Coerce(int)),
2627
vol.Optional(CONF_NAME, default=DEFAULT_NAME): cv.string,
2728
}
2829
)
@@ -37,7 +38,8 @@ async def async_setup_entry(
3738
):
3839
"""Setup sensors from a config entry created in the integrations UI."""
3940
config = hass.data[DOMAIN][config_entry.entry_id]
40-
sensors = [RedfinDataSensor(config[CONF_NAME], params, config[CONF_SCAN_INTERVAL]) for params in config[CONF_PROPERTIES]]
41+
sensors = [RedfinDataSensor(config[CONF_NAME], params, config[CONF_SCAN_INTERVAL])
42+
for params in config[CONF_PROPERTIES]]
4143
async_add_entities(sensors, update_before_add=True)
4244

4345

hacs.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"domains": [
55
"sensor"
66
],
7-
"homeassistant": "2021.6.0.dev0",
7+
"homeassistant": "2021.6.0",
88
"iot_class": [
99
"Cloud Polling"
1010
]

info.md

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

1616
{% endif %}
1717

18-
### <span style="color:red">_This component requires HA Core version 2021.6.0.dev0 or greater!_</span>
18+
### <span style="color:red">_This component requires HA Core version 2021.6.0 or greater!_</span>
1919

2020
This is a _Custom Integration_ for [Home Assistant](https://www.home-assistant.io/). It uses the unofficial [Redfin](https://www.redfin.com) API to get property value estimates.
2121

0 commit comments

Comments
 (0)