diff --git a/CHANGELOG.md b/CHANGELOG.md index 25c0ea1..0e10e46 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,16 @@ # Changelog +## 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 +* Sensor names now moved to strings file to allow for translations +* Coordinator now properly handles multiple devices +* Spelling of signal strength sensor corrected + +### Feature +* Tests added + ## 2023.05.5 (2023-05-19) #### Fix * Owlet refresh token becomes invalid after 24 hours. Meant that after 1 day the integration would stop working. Moved to pyowletapi v2023.5.28 which uses different refresh token, should no longer need reconfiguring after 24 hours ([`dc58b19`](https://github.com/ryanbdclark/owlet/commit/0141f7d01a9ac9b3e1dcc74cabb896e19bd4a821)) @@ -33,4 +43,4 @@ ### Fix * Removed Owlet specific constants, now using homeassistant generic constants -* On initialisation the integration would crash when trying to update the auth token, the integration would then have to be deleted and setup again \ No newline at end of file +* On initialisation the integration would crash when trying to update the auth token, the integration would then have to be deleted and setup again diff --git a/custom_components/owlet/binary_sensor.py b/custom_components/owlet/binary_sensor.py index 46370f5..aae4599 100644 --- a/custom_components/owlet/binary_sensor.py +++ b/custom_components/owlet/binary_sensor.py @@ -102,7 +102,7 @@ async def async_setup_entry( ) -> None: """Set up the owlet sensors from config entry.""" - coordinators: OwletCoordinator = hass.data[DOMAIN][config_entry.entry_id] + coordinators: OwletCoordinator = hass.data[DOMAIN][config_entry.entry_id].values() async_add_entities( OwletBinarySensor(coordinator, sensor)