Skip to content

Commit

Permalink
change defaults (#15)
Browse files Browse the repository at this point in the history
* change defaults

* return a remove

* bump
  • Loading branch information
Zoe authored Sep 8, 2024
1 parent a34f6d2 commit e4e45d1
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 920 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@digital-alchemy/automation",
"repository": "https://github.com/Digital-Alchemy-TS/automation",
"homepage": "https://docs.digital-alchemy.app/Automation",
"version": "24.7.1",
"version": "24.9.1",
"scripts": {
"build": "rm -rf dist/; tsc",
"lint": "eslint src",
Expand Down Expand Up @@ -35,9 +35,9 @@
},
"devDependencies": {
"@cspell/eslint-plugin": "^8.7.0",
"@digital-alchemy/core": "^24.7.2",
"@digital-alchemy/hass": "^24.7.6",
"@digital-alchemy/synapse": "^24.7.2",
"@digital-alchemy/core": "^24.8.4",
"@digital-alchemy/hass": "^24.9.1",
"@digital-alchemy/synapse": "^24.9.3",
"@types/figlet": "^1.5.8",
"@types/jest": "^29.5.12",
"@types/js-yaml": "^4.0.9",
Expand Down
4 changes: 2 additions & 2 deletions src/automation.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ export const LIB_AUTOMATION = CreateLibrary({
type: "number",
},
CIRCADIAN_ENABLED: {
default: true,
default: false,
description:
"Take responsibility for generating [CIRCADIAN_SENSOR] and emitting updates",
"Take responsibility for generating [CIRCADIAN_SENSOR_NAME] and emitting updates",
type: "boolean",
},
CIRCADIAN_MAX_TEMP: {
Expand Down
3 changes: 2 additions & 1 deletion src/extensions/solar-calc.extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -269,12 +269,13 @@ export function SolarCalculator({
exec,
offset,
}: OnSolarEvent) => {
scheduler.sliding({
const remove = scheduler.sliding({
exec: async () => await exec(),
label,
next: () => getNextTime(eventName, offset, label),
reset: CronExpression.EVERY_DAY_AT_MIDNIGHT,
});
return { remove };
};

return solarReference as SolarReference;
Expand Down
Loading

0 comments on commit e4e45d1

Please sign in to comment.