Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
elyobelyob committed May 8, 2024
1 parent b69ae0b commit 0d135e8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Lovelace custom card for Octopus Greenness Forecast Score
# Lovelace custom card for Octopus Energy Greenness Forecast

[![hacs_badge](https://img.shields.io/badge/HACS-Default-orange.svg)](https://github.com/hacs/integration)

Expand Down
2 changes: 1 addition & 1 deletion hacs.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"name": "octopus-greenness-forecast-card",
"name": "octopus-energy-greenness-forecast-card",
"render_readme": true
}
8 changes: 4 additions & 4 deletions octopus-energy-greenness-forecast-card.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class OctopusGreennessForecastCard extends HTMLElement {
class OctopusEnergyGreennessForecastCard extends HTMLElement {
set hass(hass) {
const config = this._config;
if (!this.content) {
Expand Down Expand Up @@ -219,12 +219,12 @@ tables += "</tbody></table>";
}
}

customElements.define('octopus-greenness-forecast-card', OctopusGreennessForecastCard);
customElements.define('octopus-energy-greenness-forecast-card', OctopusEnergyGreennessForecastCard);

window.customCards = window.customCards || [];
window.customCards.push({
type: 'octopus-greenness-forecast-card',
name: 'Octopus Greenness Forecast Card',
type: 'octopus-energy-greenness-forecast-card',
name: 'Octopus Energy Greenness Forecast Card',
preview: false,
description: 'This card displays the greenness forecast for Octopus Energy.'
});

0 comments on commit 0d135e8

Please sign in to comment.