Sathvika-Alla commited on
Commit
38ee18f
·
verified ·
1 Parent(s): 9d5f756

Update plugins/converterPlugin.py

Browse files
Files changed (1) hide show
  1. plugins/converterPlugin.py +7 -7
plugins/converterPlugin.py CHANGED
@@ -79,8 +79,8 @@ class ConverterPlugin:
79
  async def get_converters_by_dimming(
80
  self,
81
  dimming_type: Annotated[str, "Dimming type mentioned like dali, mains, 1-10v"],
82
- voltage_current: Annotated[str | None,"Voltage or current specification like 350mA, 24V DC"],
83
- lamp_type: Annotated[str | None, "Lamp model (e.g., Haloled, B4)"],
84
  threshold: int = 75) -> str:
85
  """Search converters by dimming type with technical specifications"""
86
  try:
@@ -124,11 +124,11 @@ class ConverterPlugin:
124
  )
125
  async def get_converters_by_voltage_current(
126
  self,
127
- artnr: Annotated[int | None, "Converter artnr"],
128
- current: Annotated[str | None, "Current like 350mA, 700mA"],
129
- input_voltage: Annotated[str | None, "Input voltage range like '198-464' NEVER ip, null if no voltage"],
130
- output_voltage: Annotated[str | None, "Output voltage range like '24', '2-25' null if no voltage"],
131
- lamp_type: Annotated[str | None, "Lamp model (e.g., Haloled, B4)"],
132
  ) -> str:
133
  try:
134
  converters = await self.db.get_converters_by_voltage_current(artnr=artnr,
 
79
  async def get_converters_by_dimming(
80
  self,
81
  dimming_type: Annotated[str, "Dimming type mentioned like dali, mains, 1-10v"],
82
+ voltage_current: Annotated[str | None,"Voltage or current specification like 350mA, 24V DC"] = None,
83
+ lamp_type: Annotated[str | None, "Lamp model (e.g., Haloled, B4)"] = None,
84
  threshold: int = 75) -> str:
85
  """Search converters by dimming type with technical specifications"""
86
  try:
 
124
  )
125
  async def get_converters_by_voltage_current(
126
  self,
127
+ artnr: Annotated[int | None, ""] = None,
128
+ current: Annotated[str | None, "Current like 350mA, 700mA"]=None,
129
+ input_voltage: Annotated[str | None, "Input voltage range like '198-464' NEVER ip, null if no voltage"] = None,
130
+ output_voltage: Annotated[str | None, "Output voltage range like '24', '2-25' null if no voltage"] = None,
131
+ lamp_type: Annotated[str | None, "Lamp model (e.g., Haloled, B4)"] = None,
132
  ) -> str:
133
  try:
134
  converters = await self.db.get_converters_by_voltage_current(artnr=artnr,