Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d323cbfd11 | ||
|
|
2accec2b49 | ||
|
|
6b343a76ca | ||
|
|
fa2e06dcf4 | ||
|
|
c04d6b7bf8 |
10
CHANGELOG.md
10
CHANGELOG.md
@@ -1,7 +1,15 @@
|
||||
# Changelog
|
||||
|
||||
<!--next-version-placeholder-->
|
||||
## 2025.4.0 (2025-04-0)
|
||||
## 2025.4.2 (2025-04-14)
|
||||
### Fix
|
||||
* Bumping pyowletapi to 2025.4.1, should hopefully stop issue where only one device was added to HA.
|
||||
|
||||
## 2025.4.1 (2025-04-11)
|
||||
### Fix
|
||||
* Changes to stop errors after refactoring pyowletapi
|
||||
|
||||
## 2025.4.0 (2025-04-11)
|
||||
### Fix
|
||||
* Bumping pyowletapi to 2025.4.0 ([`268365c`](https://github.com/ryanbdclark/owlet/commit/268365ccd428418dd5707f0569ce738b54a12fdd))
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ A custom component for the Owlet smart sock
|
||||
|
||||
## Installation
|
||||
|
||||
1. Use [HACS](https://hacs.xyz/docs/setup/download), in `HACS > Integrations > Explore & Add Repositories` search for "Owlet".
|
||||
1. Use [HACS](https://hacs.xyz/docs/use/download/download/), in `HACS > Integrations > Explore & Add Repositories` search for "Owlet".
|
||||
2. Restart Home Assistant.
|
||||
3. [![Add Integration][add-integration-badge]][add-integration] or in the HA UI go to "Settings" -> "Devices & Services" then click "+" and search for "Owlet Smart Sock".
|
||||
|
||||
|
||||
@@ -68,7 +68,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
|
||||
_LOGGER.error("No owlet devices found to set up")
|
||||
return False
|
||||
|
||||
if devices["tokens"]:
|
||||
if "tokens" in devices:
|
||||
hass.config_entries.async_update_entry(
|
||||
entry, data={**entry.data, **devices["tokens"]}
|
||||
)
|
||||
|
||||
@@ -125,8 +125,7 @@ class OwletConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
|
||||
session=async_get_clientsession(self.hass),
|
||||
)
|
||||
try:
|
||||
token = await owlet_api.authenticate()
|
||||
if token:
|
||||
if token := await owlet_api.authenticate():
|
||||
self.hass.config_entries.async_update_entry(
|
||||
self.reauth_entry, data={**entry_data, **token}
|
||||
)
|
||||
|
||||
@@ -42,7 +42,7 @@ class OwletCoordinator(DataUpdateCoordinator):
|
||||
"""Fetch the data from the device."""
|
||||
try:
|
||||
properties = await self.sock.update_properties()
|
||||
if properties["tokens"]:
|
||||
if "tokens" in properties:
|
||||
self.hass.config_entries.async_update_entry(
|
||||
self.config_entry,
|
||||
data={**self.config_entry.data, **properties["tokens"]},
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
"iot_class": "cloud_polling",
|
||||
"issue_tracker": "https://github.com/ryanbdclark/owlet/issues",
|
||||
"requirements": [
|
||||
"pyowletapi==2025.4.0"
|
||||
"pyowletapi==2025.4.2"
|
||||
],
|
||||
"version": "2025.4.0"
|
||||
"version": "2025.4.2"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user