mirror of
https://github.com/home-assistant/frontend.git
synced 2025-10-11 04:39:44 +00:00
Add ability to see Zigbee information for a device (#5445)
* add ability to see zigbee information for a device * cleanup * handle resize correctly * cleanup * convert to ha-dialog * Simplify * Add close button * Add readonly to code editor * add class * eslint fixes Co-authored-by: Bram Kragten <mail@bramkragten.nl>
This commit is contained in:

committed by
GitHub

parent
1b9f224569
commit
8383caf6a6
@@ -20,7 +20,9 @@ export class HaCodeEditor extends UpdatingElement {
|
||||
|
||||
@property() public mode?: string;
|
||||
|
||||
@property() public autofocus = false;
|
||||
@property({ type: Boolean }) public autofocus = false;
|
||||
|
||||
@property({ type: Boolean }) public readOnly = false;
|
||||
|
||||
@property() public rtl = false;
|
||||
|
||||
@@ -128,6 +130,7 @@ export class HaCodeEditor extends UpdatingElement {
|
||||
mode: this.mode,
|
||||
autofocus: this.autofocus !== false,
|
||||
viewportMargin: Infinity,
|
||||
readOnly: this.readOnly,
|
||||
extraKeys: {
|
||||
Tab: "indentMore",
|
||||
"Shift-Tab": "indentLess",
|
||||
|
Reference in New Issue
Block a user