Skip to content

Commit

Permalink
Fix MQTT schema for list type based configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
frenck committed Oct 5, 2024
1 parent 56ae080 commit 559c1ef
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 559c1ef

Please sign in to comment.