Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/node_modules/
/.rpt2_cache/
package-lock.json
/dist/*.js
yarn.lock
/dist/
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
# Platinum Weather Card by [@makin-things](https://www.github.com/makin-things)
# Platinum Weather Card by [@makin-things](https://www.github.com/makin-things) improved by [@jayanezj](https://www.github.com/jayanezj)

A highly configurable weather card with a graphical configuration.

[![hacs_badge](https://img.shields.io/badge/HACS-Default-orange.svg?style=for-the-badge)](https://github.com/hacs/integration)
[![GitHub Release][releases-shield]][releases]
[![License][license-shield]](LICENSE.md)
![Maintenance](https://img.shields.io/maintenance/yes/2022?style=for-the-badge)
![Maintenance](https://img.shields.io/maintenance/yes/2023?style=for-the-badge)

# Support
# Credits to original author

[@makin-things](https://www.github.com/makin-things)

Hey dude! Help me out for a couple of :beers: or a :coffee:!

Expand Down
10 changes: 7 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"name": "platinum-weather-card",
"version": "1.0.5",
"version": "1.1.0",
"description": "platinum-weather-card",
"homepage": "https://github.com/jayanezj/platinum-weather-card",
"keywords": [
"home-assistant",
"homeassistant",
Expand All @@ -11,8 +12,11 @@
"custom-cards"
],
"module": "platinum-weather-card.js",
"repository": "[email protected]: /platinum-weather-card.git",
"author": "Simon <[email protected]>",
"repository": {
"type": "git",
"url": "https://github.com/jayanezj/platinum-weather-card.git"
},
"author": "jayanezj <[email protected]>",
"license": "MIT",
"dependencies": {
"@lit-labs/scoped-registry-mixin": "^1.0.1",
Expand Down
8 changes: 4 additions & 4 deletions src/compute_state_display.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ export const entityComputeStateDisplay = (
return (
// Return device class translation
(stateObj.attributes.device_class &&
localize(`component.${domain}.state.${stateObj.attributes.device_class}.${stateObj.state}`)) ||
localize(`component.${domain}.entity_component.${stateObj.attributes.device_class}.state.${stateObj.state}`)) ||
// Return default translation
localize(`component.${domain}.state._.${stateObj.state}`) ||
localize(`component.${domain}.entity_component._.state.${stateObj.state}`) ||
// We don't know! Return the raw state.
stateObj.state
);
Expand All @@ -71,8 +71,8 @@ export const stringComputeStateDisplay = (

return (
// Return default translation
localize(`component.weather.state._.${stringObj}`) ||
localize(`component.weather.entity_component._.state.${stringObj}`) ||
// We don't know! Return the raw state.
stringObj
);
};
};
2 changes: 1 addition & 1 deletion src/const.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const CARD_VERSION = '1.0.5';
export const CARD_VERSION = '1.1.0';
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
2,008 changes: 1,337 additions & 671 deletions src/platinum-weather-card.ts

Large diffs are not rendered by default.

Loading