Skip to content

Commit

Permalink
fixed: readme
Browse files Browse the repository at this point in the history
  • Loading branch information
mentalilll committed Aug 12, 2024
1 parent 10200c0 commit 5bcafc9
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ wget -O - https://get.hacs.xyz | bash -

2. **Incorporate the file into Home Assistant Docker**
1. Navigate to the directory that is mapped to `/config` in your Docker setup.
2. Create 2 new directory's named `www/ha-vpd-chart/` within `/config` folder.
3. Copy the contents of the `dist` directory from the repository into the `<config>/www/ha-vpd-chart/` directory.
2. Create 2 new directory's named `www/community/ha-vpd-chart/` within `/config` folder.
3. Copy the contents of the `dist` directory from the repository into the `<config>/www/community/ha-vpd-chart/` directory.


3. **Add the resource in Home Assistant**
Expand All @@ -60,7 +60,7 @@ wget -O - https://get.hacs.xyz | bash -
If you don't have the menu than go to `http://<your_homeassistant_instance:8123>/config/lovelace/resources`\
and add the following:\
\
url: `/local/ha-vpd-chart/ha-vpd-chart.js\`\
url: `/local//community/ha-vpd-chart/ha-vpd-chart.js\`\
type: `module`

**Note:** After adding the resource, you may need to restart Home Assistant.
Expand Down
2 changes: 1 addition & 1 deletion dist/bar.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export const bar = {
this.innerHTML = `
<ha-card class="vpd-bar-view">
<style>
@import '/local/ha-vpd-chart/bar.css?v=${window.vpdChartVersion}'
@import '/local/community/ha-vpd-chart/bar.css?v=${window.vpdChartVersion}'
</style>
<div class="card-content"></div>
<div class="highlight mousePointer" style="opacity:0">
Expand Down
2 changes: 1 addition & 1 deletion dist/chart.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export const chart = {
<ha-card>
<div class="vpd-chart-view">
<style>
@import '/local/ha-vpd-chart/chart.css?v=${window.vpdChartVersion}'
@import '/local/community/ha-vpd-chart/chart.css?v=${window.vpdChartVersion}'
</style>
<div id="vpd-card-container" class="vpd-card-container"></div>
<div id="ghostmap"></div>
Expand Down
2 changes: 1 addition & 1 deletion dist/ha-vpd-chart-editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ export class HaVpdChartEditor extends HTMLElement {

render() {
this.shadowRoot.innerHTML = `<style>
@import '/local/ha-vpd-chart/ha-vpd-chart-editor.css?v=${window.vpdChartVersion}'
@import '/local/community/ha-vpd-chart/ha-vpd-chart-editor.css?v=${window.vpdChartVersion}'
</style>
<div class="vpd-chart-config">
<button type="button" class="collapsible ">Sensors</button>
Expand Down
2 changes: 1 addition & 1 deletion dist/ha-vpd-chart.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Set version for the card
window.vpdChartVersion = "1.4.5";
window.vpdChartVersion = "1.4.6";

import {methods} from './methods.js';
import {chart} from './chart.js';
Expand Down

0 comments on commit 5bcafc9

Please sign in to comment.