diff --git a/.gitignore b/.gitignore index 3d48897..36ec321 100644 --- a/.gitignore +++ b/.gitignore @@ -151,4 +151,5 @@ cython_debug/ # option (not recommended) you can uncomment the following to ignore the entire idea folder. #.idea/ -/custom_components/owlet.zip \ No newline at end of file +/custom_components/owlet.zip +custom_components/owlet/owlet.zip diff --git a/README.md b/README.md index 1341ae7..642990b 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ If you have a smart sock 2 and would like to contribute then please do so. ## Installation -1. Use [HACS](https://hacs.xyz/docs/setup/download), in `HACS > Integrations > Explore & Add Repositories` search for "Owlet". After adding this `https://github.com/RyanClark123/owlet` as a custom repository. +1. Use [HACS](https://hacs.xyz/docs/setup/download), in `HACS > Integrations > Explore & Add Repositories` search for "Owlet". After adding this `https://github.com/ryanbdclark/owlet` as a custom repository. 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". @@ -36,15 +36,15 @@ This integration provides the following entities: --- -[commits-shield]: https://img.shields.io/github/commit-activity/w/RyanClark123/owlet?style=for-the-badge -[commits]: https://github.com/RyanClark123/owlet/commits/main +[commits-shield]: https://img.shields.io/github/commit-activity/w/ryanbdclark/owlet?style=for-the-badge +[commits]: https://github.com/ryanbdclark/owlet/commits/main [hacs]: https://github.com/hacs/integration [hacsbadge]: https://img.shields.io/badge/HACS-Custom-orange.svg?style=for-the-badge [license]: LICENSE -[license-shield]: https://img.shields.io/github/license/RyanClark123/owlet.svg?style=for-the-badge -[maintenance-shield]: https://img.shields.io/badge/maintainer-Ryan%20Clark%20%40RyanClark123-blue.svg?style=for-the-badge -[releases-shield]: https://img.shields.io/github/release/RyanClark123/owlet.svg?style=for-the-badge -[releases]: https://github.com/RyanClark123/owlet/releases -[user_profile]: https://github.com/RyanClark123 +[license-shield]: https://img.shields.io/github/license/ryanbdclark/owlet.svg?style=for-the-badge +[maintenance-shield]: https://img.shields.io/badge/maintainer-Ryan%20Clark%20%40ryanbdclark-blue.svg?style=for-the-badge +[releases-shield]: https://img.shields.io/github/release/ryanbdclark/owlet.svg?style=for-the-badge +[releases]: https://github.com/ryanbdclark/owlet/releases +[user_profile]: https://github.com/ryanbdclark [add-integration]: https://my.home-assistant.io/redirect/config_flow_start?domain=owlet [add-integration-badge]: https://my.home-assistant.io/badges/config_flow_start.svg \ No newline at end of file diff --git a/custom_components/owlet/coordinator.py b/custom_components/owlet/coordinator.py index 15a00c9..7975161 100644 --- a/custom_components/owlet/coordinator.py +++ b/custom_components/owlet/coordinator.py @@ -5,7 +5,7 @@ from datetime import timedelta import logging from pyowletapi.sock import Sock -from pyowletapi.exceptions import OwletError +from pyowletapi.exceptions import OwletError, OwletConnectionError from homeassistant.core import HomeAssistant from homeassistant.helpers.entity import DeviceInfo @@ -49,5 +49,5 @@ class OwletCoordinator(DataUpdateCoordinator): """Fetch the data from the device.""" try: await self.sock.update_properties() - except OwletError as err: + except (OwletError, OwletConnectionError) as err: raise UpdateFailed(err) from err diff --git a/custom_components/owlet/manifest.json b/custom_components/owlet/manifest.json index 03d2586..277109e 100644 --- a/custom_components/owlet/manifest.json +++ b/custom_components/owlet/manifest.json @@ -2,7 +2,7 @@ "domain": "owlet", "name": "Owlet Smart Sock", "codeowners": [ - "@RyanClark123" + "@ryanbdclark" ], "config_flow": true, "dependencies": [], @@ -10,7 +10,7 @@ "homekit": {}, "iot_class": "cloud_polling", "requirements": [ - "pyowletapi==2023.5.20" + "pyowletapi==2023.5.21" ], "version":"1.5.0" } diff --git a/info.md b/info.md index ae53bcf..6e442f9 100644 --- a/info.md +++ b/info.md @@ -25,15 +25,15 @@ If you have a smart sock 2 and would like to contribute then please do so. --- -[commits-shield]: https://img.shields.io/github/commit-activity/w/RyanClark123/owlet?style=for-the-badge -[commits]: https://github.com/RyanClark123/owlet/commits/main +[commits-shield]: https://img.shields.io/github/commit-activity/w/ryanbdclark/owlet?style=for-the-badge +[commits]: https://github.com/ryanbdclark/owlet/commits/main [hacs]: https://github.com/hacs/integration [hacsbadge]: https://img.shields.io/badge/HACS-Custom-orange.svg?style=for-the-badge [license]: LICENSE -[license-shield]: https://img.shields.io/github/license/RyanClark123/owlet.svg?style=for-the-badge -[maintenance-shield]: https://img.shields.io/badge/maintainer-Ryan%20Clark%20%40RyanClark123-blue.svg?style=for-the-badge -[releases-shield]: https://img.shields.io/github/release/RyanClark123/owlet.svg?style=for-the-badge -[releases]: https://github.com/RyanClark123/owlet/releases -[user_profile]: https://github.com/RyanClark123 +[license-shield]: https://img.shields.io/github/license/ryanbdclark/owlet.svg?style=for-the-badge +[maintenance-shield]: https://img.shields.io/badge/maintainer-Ryan%20Clark%20%40ryanbdclark-blue.svg?style=for-the-badge +[releases-shield]: https://img.shields.io/github/release/ryanbdclark/owlet.svg?style=for-the-badge +[releases]: https://github.com/ryanbdclark/owlet/releases +[user_profile]: https://github.com/ryanbdclark [add-integration]: https://my.home-assistant.io/redirect/config_flow_start?domain=owlet [add-integration-badge]: https://my.home-assistant.io/badges/config_flow_start.svg \ No newline at end of file