Skip to content

Commit

Permalink
fix build issue
Browse files Browse the repository at this point in the history
  • Loading branch information
firsttris committed Jan 16, 2025
1 parent 5fbd3de commit e81046c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion src/components/ControlComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const ControlComponent: React.FC<ControlComponentProps> = ({ channel }) =
case ChannelType.KEYMATIC:
return <DoorControl channel={channel} />;
default:
console.error(`${channel.type} not implemented`);
console.error(`${(channel as any).type} not implemented`);
return null;
}
};
7 changes: 0 additions & 7 deletions src/types/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ export enum ChannelType {
BLIND_VIRTUAL_RECEIVER = 'BLIND_VIRTUAL_RECEIVER',
HEATING_CLIMATECONTROL_TRANSCEIVER = 'HEATING_CLIMATECONTROL_TRANSCEIVER',
CLIMATECONTROL_FLOOR_TRANSCEIVER = 'CLIMATECONTROL_FLOOR_TRANSCEIVER',
//RAIN_DETECTION_TRANSMITTER = 'RAIN_DETECTION_TRANSMITTER',
KEYMATIC = 'KEYMATIC',
}

Expand Down Expand Up @@ -101,11 +100,6 @@ export interface FloorClimateControlTransceiverChannel extends BaseChannel {
datapoints: FloorClimateControlTransceiverDatapoint;
}

export interface RainDetectionTransmitterChannel extends BaseChannel {
type: ChannelType.RAIN_DETECTION_TRANSMITTER;
datapoints: RainDesctionTransmitterDatapoint;
}

export interface KeymaticChannel extends BaseChannel {
type: ChannelType.KEYMATIC;
datapoints: KeymaticDatapoint;
Expand All @@ -116,7 +110,6 @@ export type Channel =
| BlindVirtualReceiverChannel
| HeatingClimateControlTransceiverChannel
| FloorClimateControlTransceiverChannel
| RainDetectionTransmitterChannel
| KeymaticChannel;

export interface Room {
Expand Down

0 comments on commit e81046c

Please sign in to comment.