Add comment about input number not supporting initial (#13758)

This commit is contained in:
Erik Montnemery 2022-09-16 13:40:08 +02:00 committed by GitHub
parent 589efa8cc5
commit 087a897cbe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,6 +33,8 @@ class HaInputNumberForm extends LitElement {
// eslint-disable-next-line: variable-name
@state() private _unit_of_measurement?: string;
/* Configuring initial value is intentionally not supported because the behavior
compared to restoring the value after restart is hard to explain */
set item(item: InputNumber) {
this._item = item;
if (item) {