Skip to content

Commit

Permalink
Bump version number
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasloven committed Jun 11, 2020
1 parent 7414654 commit 88ca719
Show file tree
Hide file tree
Showing 5 changed files with 95 additions and 2 deletions.
2 changes: 1 addition & 1 deletion custom_components/browser_mod/browser_mod.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "browser_mod",
"private": true,
"version": "1.0.3",
"version": "1.0.4",
"description": "",
"scripts": {
"build": "webpack",
Expand Down
16 changes: 16 additions & 0 deletions test/configuration.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
default_config:

demo:

browser_mod:

lovelace:
mode: yaml
resources:
- url: /local/card-mod.js
type: module
dashboards:
lovelace-yaml:
mode: yaml
title: yaml
filename: lovelace.yaml
59 changes: 59 additions & 0 deletions test/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
#
# Docker services for testing Home Assistant integrations and plugins
#
# Automaatically sets up configuration adds a user and skips the onboarding
#
# Username: dev
# Password: dev
#
# Two services, 'prod' and 'dev' run the latest production and dev docker images respectively.
#
# Start with
# $ docker-compose up prod
# or
# $ docker-compose up dev
#
# When done, clean up with
# $ docker-compose rm -f
#

x-files: &x-files
- ../custom_components:/config/custom_components
- ./configuration.yaml:/config/configuration.yaml
- ./lovelace.yaml:/config/lovelace.yaml
- ./views:/config/views

x-command: &x-command |
bash -c '
mkdir /config/www/
curl https://raw.githubusercontent.com/thomasloven/lovelace-card-mod/master/card-mod.js --output /config/www/card-mod.js &&
hass --script ensure_config -c /config &&
hass --script auth -c /config add dev dev &&
echo "
{
\"data\": {
\"done\": [
\"user\",
\"core_config\",
\"integration\"
]
},
\"key\": \"onboarding\",
\"version\": 3
}
" > /config/.storage/onboarding &&
hass -v -c /config'
version: '3.5'
services:
prod: &base_service
image: homeassistant/home-assistant:latest
volumes: *x-files
ports:
- "5001:8123"
command: *x-command

dev:
<<: *base_service
image: homeassistant/home-assistant:dev
18 changes: 18 additions & 0 deletions test/lovelace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: browser_mod
views:
- title: Player
cards:
- type: custom:browser-player
- type: button
entity: sun.sun
name: popup
tap_action:
action: call-service
service: browser_mod.popup
service_data:
deviceID: this
title: Test
card:
type: markdown
content: Hello!

0 comments on commit 88ca719

Please sign in to comment.