Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7844b5bd87 | ||
|
|
3d31de0205 | ||
|
|
8d173174e2 |
@@ -1,6 +1,10 @@
|
||||
# Changelog
|
||||
|
||||
<!--next-version-placeholder-->
|
||||
## 2023.05.7 (2023-05-30)
|
||||
### Fix
|
||||
* Fixed issue with binary sensors not loading, caused by change to way the coordinators are stored ([`8d17317`](https://github.com/ryanbdclark/owlet/commit/8d173174e286b0451cbb2c0d4ae3087028d1ea23))
|
||||
|
||||
## 2023.05.6 (2023-05-30)
|
||||
### Fix
|
||||
* In light of submitting this as a pull request to the core of HA there have been some refactoring changes to comply with HA's style requirements
|
||||
|
||||
@@ -102,11 +102,13 @@ async def async_setup_entry(
|
||||
) -> None:
|
||||
"""Set up the owlet sensors from config entry."""
|
||||
|
||||
coordinator: OwletCoordinator = hass.data[DOMAIN][config_entry.entry_id]
|
||||
coordinators: OwletCoordinator = hass.data[DOMAIN][config_entry.entry_id]
|
||||
|
||||
entities = [OwletBinarySensor(coordinator, sensor) for sensor in SENSORS]
|
||||
|
||||
async_add_entities(entities)
|
||||
async_add_entities(
|
||||
OwletBinarySensor(coordinator, sensor)
|
||||
for coordinator in coordinators
|
||||
for sensor in SENSORS
|
||||
)
|
||||
|
||||
|
||||
class OwletBinarySensor(OwletBaseEntity, BinarySensorEntity):
|
||||
|
||||
@@ -6,5 +6,5 @@
|
||||
"documentation": "https://www.home-assistant.io/integrations/owlet",
|
||||
"iot_class": "cloud_polling",
|
||||
"requirements": ["pyowletapi==2023.5.30"],
|
||||
"version":"2023.5.6"
|
||||
"version":"2023.5.7"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user