Compare commits
16 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5c8411fab7 | ||
|
|
c45959b123 | ||
|
|
4e30d4652f | ||
|
|
02f8679ed1 | ||
|
|
534ad8a351 | ||
|
|
c693fefbf3 | ||
|
|
523ba949dd | ||
|
|
3c35d87fd2 | ||
|
|
6c2c531a19 | ||
|
|
f4e38ec521 | ||
|
|
ecb950da8a | ||
|
|
a7d4276671 | ||
|
|
ef0a3c3ddb | ||
|
|
7844b5bd87 | ||
|
|
3d31de0205 | ||
|
|
8d173174e2 |
25
.github/workflows/cron.yml
vendored
Normal file
25
.github/workflows/cron.yml
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
name: Validate with hassfest
|
||||
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
schedule:
|
||||
- cron: '0 0 * * *'
|
||||
|
||||
jobs:
|
||||
hassfest:
|
||||
name: "Hassfest validation"
|
||||
runs-on: "ubuntu-latest"
|
||||
steps:
|
||||
- uses: "actions/checkout@v3"
|
||||
- uses: "home-assistant/actions/hassfest@master"
|
||||
hacs:
|
||||
name: "HACS Action"
|
||||
runs-on: "ubuntu-latest"
|
||||
steps:
|
||||
- name: "HACS Action"
|
||||
uses: "hacs/action@main"
|
||||
with:
|
||||
category: "integration"
|
||||
|
||||
|
||||
12
CHANGELOG.md
12
CHANGELOG.md
@@ -1,6 +1,18 @@
|
||||
# Changelog
|
||||
|
||||
<!--next-version-placeholder-->
|
||||
## 2023.7.2 (2023-07-04)
|
||||
### Fix
|
||||
* Bumping pyowletapi version to 2023.7.2 ([`c45959b`](https://github.com/ryanbdclark/owlet/commit/c45959b123a6e5f77747475f11d3d3ab67859756))
|
||||
|
||||
## 2023.7.1 (2023-07-03)
|
||||
### Fix
|
||||
* Bumping pyowletapi to 2023.7.1 ([`c693fef`](https://github.com/ryanbdclark/owlet/commit/c693fefbf3dba8f35802b87d064401dadbb211b5))
|
||||
|
||||
## 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].values()
|
||||
|
||||
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):
|
||||
@@ -120,7 +122,7 @@ class OwletBinarySensor(OwletBaseEntity, BinarySensorEntity):
|
||||
"""Initialize the binary sensor."""
|
||||
super().__init__(coordinator)
|
||||
self.entity_description = sensor_description
|
||||
self._attr_unique_id = f"{self.sock.serial}-{self.entity_description.name}"
|
||||
self._attr_unique_id = f"{self.sock.serial}-{self.entity_description.translation_key}"
|
||||
|
||||
@property
|
||||
def is_on(self) -> bool:
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
"config_flow": true,
|
||||
"documentation": "https://www.home-assistant.io/integrations/owlet",
|
||||
"iot_class": "cloud_polling",
|
||||
"requirements": ["pyowletapi==2023.5.30"],
|
||||
"version":"2023.5.6"
|
||||
"issue_tracker": "https://github.com/ryanbdclark/owlet/issues",
|
||||
"requirements": ["pyowletapi==2023.7.2"],
|
||||
"version":"2023.7.2"
|
||||
}
|
||||
|
||||
@@ -65,7 +65,7 @@
|
||||
"name": "Sock Diconnected Alert"
|
||||
},
|
||||
"sock_off":{
|
||||
"name":"sock_off"
|
||||
"name":"Sock Off"
|
||||
},
|
||||
"awake":{
|
||||
"name":"Awake"
|
||||
|
||||
@@ -65,7 +65,7 @@
|
||||
"name": "Sock Diconnected Alert"
|
||||
},
|
||||
"sock_off":{
|
||||
"name":"sock_off"
|
||||
"name":"Sock Off"
|
||||
},
|
||||
"awake":{
|
||||
"name":"Awake"
|
||||
|
||||
Reference in New Issue
Block a user