Skip to content

Commit

Permalink
Fix MQTT schema for list type based configuration (#3217)
Browse files Browse the repository at this point in the history
  • Loading branch information
frenck authored Oct 5, 2024
1 parent 56ae080 commit 2b360b9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/language-service/src/schemas/integrations/core/mqtt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import {
DeviceClassesSensor,
IncludeList,
Integer,
Port,
PositiveInteger,
StateClassesSensor,
Template,
Expand Down Expand Up @@ -41,7 +40,9 @@ type Availability = {
value_template?: Template;
};

export interface Schema {
export type Schema = Item | Item[];

interface Item {
/**
* The mqtt alarm panel platform enables the possibility to control MQTT capable alarm panels. The Alarm icon will change state after receiving a new state from state_topic.
* https://www.home-assistant.io/integrations/alarm_control_panel.mqtt/
Expand Down

0 comments on commit 2b360b9

Please sign in to comment.