Commit Graph

71 Commits

Author SHA1 Message Date
RyanClark123 26f81c14bf Refactoring, added tests
###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-30 13:30:59 +01:00
RyanClark123 c6f37493ca Corrected spelling fixed typing reordered imports
###Fix
# In preparation for pull request to homeassistant core, just corrected some spelling, sorted imports using isort and corrected some type hinting
2023-05-26 16:29:40 +01:00
RyanClark123 5328933de3 Update CHANGELOG.md 2023-05-19 15:16:38 +01:00
RyanClark123 0141f7d01a Refresh token should now work properly
#### 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
2023.5.5
2023-05-19 15:14:19 +01:00
RyanClark123 dc58b19a46 Fix non conversion of dict_values to list
###Fix
* dict_values for sleep state now correctly converted to list
2023-05-17 19:32:27 +01:00
RyanClark123 bd6a315b00 Bumping to pyowletapi 2023.5.25
#### Fix
* Bumping to pyowletapi 2023.5.25
2023.5.4
2023-05-17 19:23:37 +01:00
RyanClark123 0cf3afef85 Bumping pyowlet, reauth config entry fix
#### Fix
* Bumping to pyowletapi 2023.5.24
* Reauthing now no longer re adds users' password to config entry
2023.5.3
2023-05-17 18:59:38 +01:00
ryanbdclark fa06157fe2 Update const.py
###Fix
* Error in sleep states constant corrected
2023-05-16 21:14:46 +01:00
RyanClark123 2b21188e73 Update CHANGELOG 2023.5.2 2023-05-16 15:21:41 +01:00
RyanClark123 9b3392bdbc Added new sensors
###Feature
* Added new sensors, binary sensor awake, is on if baby awake, off otherwise. Sensor sleep state, shows baby sleep state, options are awake, light sleep, deep sleep
2023-05-16 15:06:01 +01:00
RyanClark123 dc710a1783 Integration now uses refresh token
-Makes use of pyowletapi 2023.5.23 to use the refresh token to reauthenticate, integration now no longer stores users password
-Default polling interval changed to 5 seconds to match owlet app
2023-05-16 14:05:26 +01:00
RyanClark123 8d9299a8f4 Updated changelog for new release
Updated changelog for new release
2023.5.1
2023-05-15 15:56:37 +01:00
RyanClark123 228d54b641 bumping pyowletapi version
### Fix
* Bump pyowletapi to 2023.5.21, fix for unawaited authentication call believe to be causing an issue reauthenticating when token had expired
* Github username change reflected, won't change again
2023-05-15 11:21:50 +01:00
RyanClark123 3e147aa914 Added reauth flow, much better error handling on setup
### Feature
* Now supports reauthentication if credentials have expired/no longer work
* Better error handling when configuring integration, will notify user of incorrect credentials

### 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
2023-05-12 17:02:04 +01:00
RyanClark123 bb0e8cc9c9 Corrected spelling of celcius 2023-05-11 17:20:31 +01:00
RyanClark123 84aa88ae01 More properties added
More sock properties added as sensors
2023-05-11 17:05:57 +01:00
RyanClark123 a5a8336006 Amended config flow, hardcoded support for v3
-Amended config flow, took out second step to select socks
-Added configuration to allow users to change polling interval
-Hardcoded support for only v3 sock, I do not own any other socks to test with
2023-05-09 16:37:25 +01:00
RyanClark123 daff165593 Updated config flow
-Config flow now allows user to select socks to configure
-Added strings to config
-Amended sensor state classes
-General Tidying up
2023-05-05 16:23:52 +01:00
RyanClark123 1ede92c48f Create hacs.json 2023-05-04 16:36:54 +01:00
RyanClark123 fe34bd63af Initial commit
Initial commit
2023-05-04 16:33:06 +01:00
RyanClark123 f5ed126eaa Initial commit 2023-05-04 16:32:12 +01:00