Skip to content

Commit

Permalink
Dependency bumps (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoe authored Jun 13, 2024
1 parent 5526f36 commit 17e6543
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 28 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Welcome to `@digital-alchemy/synapse`!

This project builds on the functions provided by `@digital-alchemy/hass` to provide the ability to generate entities within your Home Assistant install. With the help of a [custom component](https://github.com/Digital-Alchemy-TS/synapse-extension), you can gate logic behind switches, report states with sensors, attach functions to buttons, and more!

- [Extended docs](https://docs.digital-alchemy.app/Synapse)
- [Extended docs](https://docs.digital-alchemy.app)
- [Discord](https://discord.gg/JkZ35Gv97Y)

## 💾 Install
Expand All @@ -21,10 +21,11 @@ Then add to your application / library
```typescript
import { LIB_SYNAPSE } from "@digital-alchemy/synapse";
import { LIB_HASS } from "@digital-alchemy/hass";
import { LIB_FASTIFY } from "@digital-alchemy/fastify-extension";

// application
const MY_APP = CreateApplication({
libraries: [LIB_SYNAPSE, LIB_HASS],
libraries: [LIB_SYNAPSE, LIB_HASS, LIB_FASTIFY],
name: "home_automation",
})

Expand Down
34 changes: 17 additions & 17 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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/synapse",
"repository": "https://github.com/Digital-Alchemy-TS/synapse",
"homepage": "https://docs.digital-alchemy.app/Synapse",
"version": "0.3.8",
"version": "24.06.1",
"scripts": {
"build": "rm -rf dist; tsc",
"test": "./scripts/test.sh",
Expand All @@ -25,9 +25,9 @@
},
"license": "MIT",
"dependencies": {
"@digital-alchemy/core": "^0.3.17",
"@digital-alchemy/fastify-extension": "^0.3.3",
"@digital-alchemy/hass": "^0.3.31",
"@digital-alchemy/core": "^24.6.1",
"@digital-alchemy/fastify-extension": "^24.6.1",
"@digital-alchemy/hass": "^24.6.2",
"bonjour": "^3.5.0",
"dayjs": "^1.11.11"
},
Expand Down
2 changes: 2 additions & 0 deletions src/mock/generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,11 @@ export function EntityGenerator({ scheduler, synapse, context, logger }: TServic
suggested_object_id: "magic_the_sensor",
unit_of_measurement: "ft/s",
});

sensor.onUpdate(() => {
//
});

const binary_sensor = synapse.binary_sensor({
context,
device_class: "window",
Expand Down
7 changes: 2 additions & 5 deletions src/synapse.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,7 @@ export const LIB_SYNAPSE = CreateLibrary({
type: "number",
},
METADATA: {
description: [
"A string to uniquely identify this application",
"Should be unique within home assistant, such as a uuid",
"Default value calculated from hostname + username + app_name",
],
description: "Extra data to describe the app + build default device from",
type: "internal",
} as InternalConfig<HassDeviceMetadata>,
METADATA_HOST: {
Expand All @@ -120,6 +116,7 @@ export const LIB_SYNAPSE = CreateLibrary({
},
PUBLISH_BONJOUR: {
default: true,
description: "Publish mDNS discovery topics to allow zeroconf discovery",
type: "boolean",
},
},
Expand Down

0 comments on commit 17e6543

Please sign in to comment.