fix: Improve state handling to avoid stuck triggered cameras (#2348)
- Related: https://github.com/dermotduffy/advanced-camera-card/issues/2342
This commit is contained in:
@@ -222,6 +222,7 @@ export class Camera {
|
||||
protected _stateChangeHandler = (difference: HassStateDifference): void => {
|
||||
this._eventCallback?.({
|
||||
cameraID: this.getID(),
|
||||
id: difference.entityID,
|
||||
type: isTriggeredState(difference.newState.state) ? 'new' : 'end',
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user