home-assistant-query-selector 2.1.2 → 2.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -0
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -62,6 +62,12 @@ instance.addEventListener('onLovelacePanelLoad', ({ detail }) => {
|
|
|
62
62
|
// shadowRoot === hui-root‘s shadowRoot
|
|
63
63
|
});
|
|
64
64
|
|
|
65
|
+
// Deep-querying the sidebar element
|
|
66
|
+
HOME_ASSISTANT.selector.deepQuery('ha-sidebar').element
|
|
67
|
+
.then((sidebar) => {
|
|
68
|
+
// sidebar === ha-sidebar element
|
|
69
|
+
});
|
|
70
|
+
|
|
65
71
|
});
|
|
66
72
|
|
|
67
73
|
// This event will be triggered every time a more-info dialog is open
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "home-assistant-query-selector",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.3",
|
|
4
4
|
"description": "Easily query home-assistant DOM elements in an async way",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"query-selector",
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
"test:open": "cypress open",
|
|
42
42
|
"test:ci": "yarn demo:ha && yarn test:run && yarn coverage:report && yarn stop:ha",
|
|
43
43
|
"test:copy": "cp test/index.js .hass/config/www/home-assistant-query-selector-tests.js",
|
|
44
|
-
"start:ha": "docker run --rm -d -p8123:8123 -v ${PWD}/.hass/config:/config homeassistant/home-assistant:2023.
|
|
45
|
-
"stop:ha": "docker stop $(docker ps -a -q --filter ancestor=homeassistant/home-assistant:2023.
|
|
44
|
+
"start:ha": "docker run --rm -d -p8123:8123 -v ${PWD}/.hass/config:/config homeassistant/home-assistant:2023.12.1",
|
|
45
|
+
"stop:ha": "docker stop $(docker ps -a -q --filter ancestor=homeassistant/home-assistant:2023.12.1) || true",
|
|
46
46
|
"demo:ha": "yarn build && yarn test:copy && yarn start:ha",
|
|
47
47
|
"prepare": "yarn build",
|
|
48
48
|
"prepublishOnly": "yarn lint && yarn test:ts && yarn test:ci",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"postversion": "git push && git push --tags"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"shadow-dom-selector": "^
|
|
53
|
+
"shadow-dom-selector": "^4.0.0"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@cypress/code-coverage": "^3.12.10",
|