Skip to content

Commit

Permalink
Rename some "cover" to "shutter"
Browse files Browse the repository at this point in the history
  • Loading branch information
Deejayfool committed Jun 9, 2020
1 parent b924760 commit e7d14e3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Cover card
# Shutter card

This card allows to open, close or set a cover to the opening rate you want.
This card allows to open, close or set a shutter to the opening rate you want.

## Overview

Expand All @@ -13,10 +13,10 @@ This card allows to open, close or set a cover to the opening rate you want.

If you use HACS, the resources will automatically be configured with the needed file.

If you don't use HACS, you can download js file from [latest releases](https://github.com/Deejayfool/hass-cover-card/releases). Drop it then in `www` folder in your `config` directory. Next add the following entry in lovelace configuration:
If you don't use HACS, you can download js file from [latest releases](https://github.com/Deejayfool/hass-shutter-card/releases). Drop it then in `www` folder in your `config` directory. Next add the following entry in lovelace configuration:

```yaml
resources:
- url: /local/hass-cover-card.js
- url: /local/hass-shutter-card.js
type: module
```
5 changes: 2 additions & 3 deletions hacs.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "Custom Cover Card",
"filename": "hass-cover-card.js",
"homeassistant": "0.110.0",
"name": "Shutter Card",
"filename": "hass-shutter-card.js",
"render_readme": true
}
2 changes: 1 addition & 1 deletion hass-shutter-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ class ShutterCard extends HTMLElement {

const style = document.createElement('style');
style.textContent = `
.cc-shutters { padding: 16px; }
.sc-shutters { padding: 16px; }
.sc-shutter { display: flex; margin-top: 1rem; }
.sc-shutter:first-child { margin-top: 0; }
.sc-shutter-left { flex: 1; }
Expand Down

0 comments on commit e7d14e3

Please sign in to comment.