-
-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(action)!: Add selector for floor and label
refactor(action)!: Rename call-service node to action Home Assistant is rebranding service calls to actions. BREAKING CHANGE: The call-service node has been renamed to the action node. The domain and service input properties are deprecated and will be removed in version 1.0. Please use the action property instead.
- Loading branch information
Showing
33 changed files
with
1,099 additions
and
648 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,31 @@ | ||
import { defineClientConfig } from '@vuepress/client'; | ||
|
||
const redirectRoutes = [ | ||
{ | ||
from: '/cookbook/get-entities.html', | ||
to: '/node/get-entities.html', | ||
}, | ||
{ | ||
from: '/guide/custom_integration/switch.html', | ||
to: '/node/switch.html', | ||
}, | ||
{ | ||
from: '/node/call-service.html', | ||
to: '/node/action.html', | ||
}, | ||
{ | ||
from: '/guide/call-service.html', | ||
to: '/guide/action.html', | ||
}, | ||
]; | ||
|
||
export default defineClientConfig({ | ||
enhance({ router }) { | ||
router.addRoute({ | ||
path: '/cookbook/get-entities.html', | ||
redirect: '/node/get-entities.html', | ||
}); | ||
router.addRoute({ | ||
path: '/guide/custom_integration/switch.html', | ||
redirect: '/node/switch.html', | ||
redirectRoutes.forEach((route) => { | ||
router.addRoute({ | ||
path: route.from, | ||
redirect: route.to, | ||
}); | ||
}); | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.