Skip to content

Commit 2864b6b

Browse files
authored
Merge pull request #1579 from UI-Lovelace-Minimalist/release
Merge release with main
2 parents 292532e + 9892489 commit 2864b6b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+564
-400
lines changed

.github/workflows/automatic-custom-card-docs.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
docit:
1212
runs-on: "ubuntu-latest"
1313
steps:
14-
- uses: "actions/checkout@v3"
14+
- uses: "actions/checkout@v4"
1515
with:
1616
fetch-depth: 0
1717
- name: "Copy and rename README.md files"

.github/workflows/check-code-quality.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ jobs:
1111
runs-on: "ubuntu-latest"
1212
steps:
1313
- name: "⤵️ Check out code from GitHub"
14-
uses: "actions/checkout@v3"
14+
uses: "actions/checkout@v4"
1515
- name: "⚙️ Set up Python"
1616
uses: "actions/setup-python@v4"
1717
with:
18-
python-version: 3.8
18+
python-version: 3.11
1919
- name: "⚙️ Set up Ruby"
2020
uses: "ruby/setup-ruby@v1"
2121
with:

.github/workflows/codeql.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434

3535
steps:
3636
- name: "Checkout repository"
37-
uses: "actions/checkout@v3"
37+
uses: "actions/checkout@v4"
3838

3939
# Initializes the CodeQL tools for scanning.
4040
- name: "Initialize CodeQL"

.github/workflows/hacs-validate.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: "ubuntu-latest"
1414
steps:
1515
- name: "checkout"
16-
uses: "actions/checkout@v3"
16+
uses: "actions/checkout@v4"
1717
- name: "validation"
1818
uses: "home-assistant/actions/hassfest@master"
1919

@@ -22,7 +22,7 @@ jobs:
2222
runs-on: "ubuntu-latest"
2323
steps:
2424
- name: "checkout"
25-
uses: "actions/checkout@v3"
25+
uses: "actions/checkout@v4"
2626
- name: "validation"
2727
uses: "hacs/action@main"
2828
with:

.github/workflows/labeler.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: "ubuntu-latest"
1313
steps:
1414
- name: "⤵️ Check out code from GitHub"
15-
uses: "actions/checkout@v3"
15+
uses: "actions/checkout@v4"
1616
- name: "\U0001F680 Run Labeler"
1717
uses: "crazy-max/ghaction-github-labeler@v4"
1818
with:

.github/workflows/pages.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ jobs:
1010
deploy:
1111
runs-on: "ubuntu-latest"
1212
steps:
13-
- uses: "actions/checkout@v3"
13+
- uses: "actions/checkout@v4"
1414
with:
15-
node-version: "16.x"
15+
node-version: "20.x"
1616
- uses: "actions/setup-python@v4"
1717
with:
1818
python-version: "3.11"

.github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: "ubuntu-latest"
1212
steps:
1313
- name: "Check out repository"
14-
uses: "actions/checkout@v3"
14+
uses: "actions/checkout@v4"
1515

1616
- name: "Get version"
1717
id: "version"

.markdownlint.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ default: true
66
MD001: false
77

88
MD024:
9-
allow_different_nesting: true
9+
siblings_only: true
1010

1111
MD025: false
1212

@@ -48,7 +48,7 @@ no-emphasis-as-heading: false
4848
first-line-h1: false
4949

5050
code-block-style:
51-
style: ["fenced"]
51+
style: "fenced"
5252

5353
proper-names:
5454
names: []

.pre-commit-config.yaml

+11-11
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ ci:
1212

1313
repos:
1414
- repo: "https://github.com/pre-commit/pre-commit-hooks"
15-
rev: "v4.2.0"
15+
rev: "v5.0.0"
1616
hooks:
1717
- id: "check-executables-have-shebangs"
1818
- id: "check-json"
@@ -30,7 +30,7 @@ repos:
3030
- id: "mixed-line-ending"
3131

3232
- repo: "https://github.com/adrienverge/yamllint.git"
33-
rev: "v1.26.3"
33+
rev: "v1.35.1"
3434
hooks:
3535
- id: "yamllint"
3636
args: ["--format", "parsable", "--strict"]
@@ -41,13 +41,13 @@ repos:
4141
)$
4242
4343
- repo: https://github.com/igorshubovych/markdownlint-cli
44-
rev: v0.31.1
44+
rev: v0.43.0
4545
hooks:
4646
- id: markdownlint
4747
args: ["--fix"]
4848

4949
- repo: "https://github.com/jumanjihouse/pre-commit-hook-yamlfmt"
50-
rev: "0.1.1"
50+
rev: "0.2.3"
5151
hooks:
5252
- id: "yamlfmt"
5353
args:
@@ -63,23 +63,23 @@ repos:
6363
exclude: ".*"
6464

6565
- repo: "https://github.com/mattlqx/pre-commit-search-and-replace"
66-
rev: "v1.0.5"
66+
rev: "v1.1.8"
6767
hooks:
6868
- id: "search-and-replace"
6969

7070
- repo: "https://github.com/asottile/pyupgrade"
71-
rev: "v2.31.1"
71+
rev: "v3.19.1"
7272
hooks:
7373
- id: "pyupgrade"
7474
args: ["--py39-plus"]
7575

7676
- repo: https://github.com/pycqa/isort
77-
rev: 5.12.0
77+
rev: 5.13.2
7878
hooks:
7979
- id: isort
8080

8181
- repo: "https://github.com/psf/black"
82-
rev: "22.3.0"
82+
rev: "24.10.0"
8383
hooks:
8484
- id: "black"
8585
args:
@@ -89,7 +89,7 @@ repos:
8989
files: '^((custom_components|tests)/.+)?[^/]+\.py$'
9090

9191
- repo: "https://github.com/PyCQA/flake8"
92-
rev: "4.0.1"
92+
rev: "7.1.1"
9393
hooks:
9494
- id: "flake8"
9595
additional_dependencies:
@@ -99,7 +99,7 @@ repos:
9999
files: '^(custom_components/.+)?[^/]+\.py$'
100100

101101
- repo: "https://github.com/PyCQA/bandit"
102-
rev: "1.7.4"
102+
rev: "1.8.0"
103103
hooks:
104104
- id: "bandit"
105105
args:
@@ -108,7 +108,7 @@ repos:
108108
# - "--configfile=bandit.yaml"
109109
<<: *python-files-with-tests
110110
- repo: https://github.com/codespell-project/codespell.git
111-
rev: "v2.1.0"
111+
rev: "v2.3.0"
112112
hooks:
113113
- id: codespell
114114
files: "(.*.md|translations/en.json)"

README.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
2020
It's kind of hard to explain what this is, so let's call it a "theme" (in quotation marks). But one thing is for sure, it is very nice! Taking the exceptional work of tben as a basis, this repository is aimed to ease installation and maintenance of his wonderful work. You can use this interpretation of a SmartHomeUI more or less like a theme in HomeAssistant.
2121

22-
<img src="https://raw.githubusercontent.com/UI-Lovelace-Minimalist/UI/main/docs/assets/img/example_home.png" width="200"> <img src="https://raw.githubusercontent.com/UI-Lovelace-Minimalist/UI/main/docs/assets/img/example_temperature.png" width="200"> <img src="https://raw.githubusercontent.com/UI-Lovelace-Minimalist/UI/main/docs/assets/img/example_consumption.png" width="200"> <img src="https://raw.githubusercontent.com/UI-Lovelace-Minimalist/UI/main/docs/assets/img/example_localisation.png" width="200">
22+
<img src="https://raw.githubusercontent.com/UI-Lovelace-Minimalist/UI/main/docs/assets/img/example_home.png" width="200" alt="example-image1" > <img src="https://raw.githubusercontent.com/UI-Lovelace-Minimalist/UI/main/docs/assets/img/example_temperature.png" width="200" alt="example-image2" > <img src="https://raw.githubusercontent.com/UI-Lovelace-Minimalist/UI/main/docs/assets/img/example_consumption.png" width="200" alt="example-image3" > <img src="https://raw.githubusercontent.com/UI-Lovelace-Minimalist/UI/main/docs/assets/img/example_localisation.png" width="200" alt="example-image4" >
2323

2424
## Wiki for documentation
2525

@@ -28,6 +28,7 @@ Take a look here: [https://ui-lovelace-minimalist.github.io/UI/](https://ui-love
2828

2929
Table of content from the WIKI
3030
<br>
31+
3132
<table>
3233
<tr>
3334
<th style="width: 33%;">Setup</th>
@@ -103,5 +104,5 @@ The same goes for our `custom_cards`. As the number grows, the list would be to
103104

104105
### Contributions
105106

106-
>This is a living project and all input is very welcome! If you configured and designed a card, that you would like to share, please feel free to do so! We are happy to include your contribution so others can use it as well!
107-
This project uses pre-commit for consistent and clean code. If possible, please make sure that you also use pre-commit for local development before creating a pull request.
107+
> This is a living project and all input is very welcome! If you configured and designed a card, that you would like to share, please feel free to do so! We are happy to include your contribution so others can use it as well!
108+
> This project uses pre-commit for consistent and clean code. If possible, please make sure that you also use pre-commit for local development before creating a pull request.

custom_cards/custom_card_camera/README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ title: Custom Camera Card
33
hide:
44
- toc
55
---
6+
67
<!-- markdownlint-disable MD046 -->
78

89
# Custom-card "Camera"
@@ -21,7 +22,7 @@ Version: 1.0.0
2122

2223
<details>
2324
<summary>1.0.1</summary>
24-
Added variable to passthough aspect ratio to the picture entity card. Fix minor issues with title.
25+
Added variable to passthrough aspect ratio to the picture entity card. Fix minor issues with title.
2526
</details>
2627
<details>
2728
<summary>1.0.0</summary>
@@ -39,7 +40,7 @@ Initial release.
3940
ulm_custom_card_camera_title: true
4041
ulm_custom_card_camera_name: "name"
4142
ulm_custom_card_camera_label: "label"
42-
ulm_custom_card_camera_aspect_ratio: '16:9'
43+
ulm_custom_card_camera_aspect_ratio: "16:9"
4344
```
4445
4546
## Variables

custom_cards/custom_card_httpedo13_sun/README.md

+8-6
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ title: Sun Card Custom-card
33
hide:
44
- toc
55
---
6+
67
<!-- markdownlint-disable MD046 -->
78

89
# Custom-card "Sun"
@@ -24,6 +25,7 @@ Initial release
2425
## Requirements
2526

2627
This card uses:
28+
2729
<table>
2830
<tr>
2931
<th>Component / card</th>
@@ -49,23 +51,23 @@ This card uses:
4951
## Usage
5052

5153
```yaml
52-
- type: custom:button-card
53-
template: custom_card_httpedo13_sun
54-
variables:
55-
language: 'it'
54+
- type: custom:button-card
55+
template: custom_card_httpedo13_sun
56+
variables:
57+
language: "it"
5658
```
5759
5860
## Variables
5961
6062
The same sun card config.
6163
6264
| Name | Accepted values | Description | Default |
63-
|---------------|----------------------|--------------------------------------|-----------------------------------------------------|
65+
| ------------- | -------------------- | ------------------------------------ | --------------------------------------------------- |
6466
| darkMode | `boolean` | Changes card colors to dark or light | Home assistant dark mode state |
6567
| language | `string`<sup>1</sup> | Changes card language | Home assistant language or english if not supported |
6668
| showAzimuth | `boolean` | Displays azimuth in the footer | `false` |
6769
| showElevation | `boolean` | Displays elevation in the footer | `false` |
6870
| timeFormat | `'12h'`/`'24h'` | Displayed time format | Locale based on Home assistant language |
69-
| title | `string` | Card title | Doesn't display a title by default | |
71+
| title | `string` | Card title | Doesn't display a title by default |
7072

7173
(<sup>1</sup>) Supported languages: `da`, `de`, `en`, `es`, `et`, `fi`, `fr`, `hu`, `it`, `nl`, `pl`, `pt-BR`, `ru`, `sl`, `sv`

custom_cards/custom_card_imswel_medias/README.md

+3
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ Initial release
2929
## Requirements
3030

3131
This card needs the following to function correctly:
32+
3233
| Component | Required |
3334
| ----------------------------------------------------------------------------------------- | ---------------------------------- |
3435
|[Plex Recently Added](https://github.com/NemesisRE/sensor.plex_recently_added) | Yes for **`Media Library Card`** |
@@ -40,6 +41,7 @@ This card needs the following to function correctly:
4041
**Media Library Card** for [Plex Recently Added](https://github.com/NemesisRE/sensor.plex_recently_added) :
4142

4243
![example-image-plex](../../docs/assets/img/custom_card_imswel_medias/medias_library_plex.png)<br>
44+
4345
| Variable | Default | Required | Notes |
4446
| ----------------------------- | ------- | -------- | ----------------------------------------------------------------------- |
4547
| ulm_custom_card_imswel_medias_index | 1 | Yes | The index of the item in your **Plex library** to show. |
@@ -58,6 +60,7 @@ This card needs the following to function correctly:
5860
5961
![example-image-radarr](../../docs/assets/img/custom_card_imswel_medias/medias_upcoming_radarr.png)
6062
![example-image-sonarr](../../docs/assets/img/custom_card_imswel_medias/medias_upcoming_sonarr.png)<br>
63+
6164
| Variable | Default | Required | Notes |
6265
| ----------------------------- | ------- | -------- | -------------------------------------------------------------------------------------------------------- |
6366
| ulm_custom_card_imswel_medias_index | 1 | Yes | The index of the item in your **Radarr/Sonarr library** to show. |

custom_cards/custom_card_nik_clock/README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@ title: Tablet Clock Card
33
hide:
44
- toc
55
---
6+
67
<!-- markdownlint-disable MD046 -->
78

89
# Custom-card "Tablet clock Card"
910

10-
This is a `custom-card` that shows the currenct time and Date. This is designed for a tablet or big monitor.
11+
This is a `custom-card` that shows the current time and Date. This is designed for a tablet or big monitor.
1112

1213
![Screenshot](../../docs/assets/img/custom_card_nik_clock.png)
1314

custom_cards/custom_card_nik_door/README.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ hide:
88

99
# Custom-card "Minimal Door Lock"
1010

11-
This is a `custom-card` that shows the currenct state of your Lock and allows you to open and close it showing the state with a Minimal Design.
11+
This is a `custom-card` that shows the current state of your Lock and allows you to open and close it showing the state with a Minimal Design.
1212

1313
![Screenshot](../../docs/assets/img/custom_card_nik_door.png)
1414

@@ -36,7 +36,6 @@ To have the Minimalist cards and custom cards installed
3636
## Usage
3737

3838
```yaml
39-
4039
- type: "custom:button-card"
4140
template: "custom_card_nik_door"
4241
entity: "sensor.nuki_blindato_door_security_state"

custom_cards/custom_card_person_info_small/README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ The `custom_card_person_info_small` is based on `card_person_info`.
2929
| ulm_card_person_driving_entity | | :material-close: | Set a binary sensor that depicts when this person is driving |
3030
| ulm_card_person_battery_entity | | :material-close: | Set a battery level sensor |
3131
| ulm_card_person_battery_state_entity | | :material-close: | Set a battery state sensor (eg the battery state sensor from the home assistant companion app will have the states "charging" or "discharging") |
32-
| ulm_card_battery_battery_level_danger | 15 | :material-close: | Changes the color of the Icon, if the battery level falls below the provided value. Must be higher than ulm_card_battery_battery_level_waring
33-
| ulm_card_battery_battery_level_waring | 30 | :material-close: | Changes the color of the Icon, if the battery level falls below the provided value.
34-
| ulm_card_battery_color_battery_level_danger | var(--google-red) | :material-close: | Color of icon if battery level is within the 'danger' zone.
35-
| ulm_card_battery_color_battery_level_warning | var(--google-yellow) | :material-close: | Color of icon if battery level is within the 'warning' zone.
36-
| ulm_card_battery_color_battery_level_ok | var(--google-green) | :material-close: | Color of icon if battery level is not within the 'danger' or 'warning' zone.
32+
| ulm_card_battery_battery_level_danger | 15 | :material-close: | Changes the color of the Icon, if the battery level falls below the provided value. Must be higher than ulm_card_battery_battery_level_waring |
33+
| ulm_card_battery_battery_level_waring | 30 | :material-close: | Changes the color of the Icon, if the battery level falls below the provided value. |
34+
| ulm_card_battery_color_battery_level_danger | var(--google-red) | :material-close: | Color of icon if battery level is within the 'danger' zone. |
35+
| ulm_card_battery_color_battery_level_warning | var(--google-yellow) | :material-close: | Color of icon if battery level is within the 'warning' zone. |
36+
| ulm_card_battery_color_battery_level_ok | var(--google-green) | :material-close: | Color of icon if battery level is not within the 'danger' or 'warning' zone. |
3737

3838
## Usage
3939

custom_cards/custom_template_shogun160_battery_info/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ This is an template to add the battery level to every ui minimalist card
2727

2828
## Variables
2929

30-
| Variable | Default | Required | Notes |
31-
| -------------------------------------------- | ------- | -------- | ------------------------------------------------------------------------ |
32-
| ulm_battery_entity | | No | The entity to represent the battery_level
30+
| Variable | Default | Required | Notes |
31+
| ------------------ | ------- | -------- | ----------------------------------------- |
32+
| ulm_battery_entity | | No | The entity to represent the battery_level |
3333

3434
## Usage with battery or battery_level attribute from entity
3535

custom_components/ui_lovelace_minimalist/__init__.py

+3
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,16 @@
1111
from homeassistant.core import HomeAssistant
1212
from homeassistant.helpers.aiohttp_client import async_get_clientsession
1313
from homeassistant.loader import async_get_integration
14+
import voluptuous as vol
1415

1516
from .base import UlmBase
1617
from .const import DOMAIN, NAME
1718
from .enums import ConfigurationType, UlmDisabledReason
1819

1920
_LOGGER: logging.Logger = logging.getLogger(__package__)
2021

22+
CONFIG_SCHEMA = vol.Schema({DOMAIN: vol.Schema({})}, extra=vol.ALLOW_EXTRA)
23+
2124

2225
async def async_initialize_integration(
2326
hass: HomeAssistant,

0 commit comments

Comments
 (0)