initial api
This commit is contained in:
1 parent
899d78fba5
commit
e87c41f496
16 files changed
+458
-2
No files matched your search
+1
-1
@@ -32,7 +32,7 @@
|
||||
"scripts": {
|
||||
"develop": "concurrently -r \"npm:type-check:watch\" \"npm:start\"",
|
||||
"start": "parcel ./src/index.html",
|
||||
"build": "npm run type-check && parcel build ./src/index.html --public-url '/'",
|
||||
"build": "npm run type-check && parcel build ./src/index.html --public-url '/web'",
|
||||
"prettify": "prettier --write './src/**/*.{ts,tsx}'",
|
||||
"test": "jest",
|
||||
"test:watch": "jest --watch",
|
||||
|
||||
@@ -43,7 +43,7 @@ export default class ScriptDeviceState extends BaseState<DeviceScript> {
|
||||
<InputText
|
||||
textBoxFor="entity_id"
|
||||
label="Entity ID"
|
||||
value={state.entity_id}
|
||||
value={state.entity_id ?? ""}
|
||||
onChange={entity_id => this.setState({...state, entity_id, domain: entity_id.split('.')[0]})}
|
||||
/>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user