Skip to content

Commit

Permalink
fix: don't mount for ha
Browse files Browse the repository at this point in the history
  • Loading branch information
shepherdjerred committed Dec 24, 2024
1 parent 9ce37e9 commit 5a2ce71
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions cdk8s/src/services/home/homeassistant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import {
ConfigMap,
Deployment,
DeploymentStrategy,
HostPathVolumeType,
Protocol,
Service,
Volume,
Expand All @@ -24,19 +23,6 @@ export function createHomeAssistantDeployment(chart: Chart) {
strategy: DeploymentStrategy.recreate(),
});

// /dev/serial/by-id/usb-Nabu_Casa_Home_Assistant_Connect_ZBT-1_082a732ea338ef11bf43317af3d9b1e5-if00-port0
const serialPath = "/dev/ttyUSB0";

const serialDeviceVolume = Volume.fromHostPath(
chart,
"ha-serial-device-volume",
"ha-serial-device-volume",
{
path: serialPath,
type: HostPathVolumeType.CHAR_DEVICE,
},
);

const claim = new LocalPathVolume(
chart,
"homeassistant-pvc",
Expand Down Expand Up @@ -130,10 +116,6 @@ export function createHomeAssistantDeployment(chart: Chart) {
path: "/config",
volume,
},
{
path: serialPath,
volume: serialDeviceVolume,
},
...(files.map((file) => {
return {
path: `/config/${file}`,
Expand Down

0 comments on commit 5a2ce71

Please sign in to comment.