prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  [BUG] Osram switch mini
  **Describe the bug**
  Adding a OSRAM Lightify Switch Mini to my network is not working out after quirk was added some time ago.
  
  Before quirk: I picked up zha_events.
  
  After quirk: The remote switches everything(switched bulbs cover) in my network on and off.
  
  
   
  
  **To Reproduce**
  Steps to reproduce the behavior:
  Removed remote, deletes entries from zha.storage and other HA files I could find the remote.
  
  Device signature:
  {
    "node_descriptor": "NodeDescriptor(byte1=2, byte2=64, mac_capability_flags=128, manufacturer_code=4364, maximum_buffer_size=82, maximum_incoming_transfer_size=82, server_mask=0, maximum_outgoing_transfer_size=82, descriptor_capability_field=0)",
    "endpoints": {},
    "manufacturer": "OSRAM",
    "model": "Lightify Switch Mini",
    "class": "zhaquirks.osram.switchmini.OsramSwitchMini"
  }
  
  Manage cluster is empty.
  ![osrammini](https://user-images.githubusercontent.com/11892538/94000737-deea2f80-fd97-11ea-88a2-83301b6584a0.png)
  
  **Expected behavior**
  A remote that switches the stuff I want, not everything(via zha_event for my usage)
  
  **Screenshots**
  If applicable, add screenshots to help explain your problem.
  
  **Additional context**
  [osramminiadd.txt](https://github.com/zigpy/zha-device-handlers/files/5267371/osramminiadd.txt)
  
  
  --- END ISSUE ---
  
  Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
  --- BEGIN FILES ---
  Path: `zhaquirks/osram/switchmini.py`
  Content:
  ```
  1 """Osram Smart+ Switch Mini device."""
  2 from zigpy.profiles import zha
  3 from zigpy.quirks import CustomDevice
  4 from zigpy.zcl.clusters.general import (
  5     Basic,
  6     Groups,
  7     Identify,
  8     LevelControl,
  9     OnOff,
  10     Ota,
  11     PowerConfiguration,
  12     Scenes,
  13     PollControl,
  14 )
  15 from zigpy.zcl.clusters.lighting import Color
  16 from zigpy.zcl.clusters.lightlink import LightLink
  17 
  18 from . import OSRAM
  19 from ..const import (
  20     DEVICE_TYPE,
  21     ENDPOINTS,
  22     INPUT_CLUSTERS,
  23     OUTPUT_CLUSTERS,
  24     PROFILE_ID,
  25     SHORT_PRESS,
  26     COMMAND,
  27     COMMAND_ON,
  28     MODELS_INFO,
  29     BUTTON_1,
  30     ENDPOINT_ID,
  31     COMMAND_STEP_ON_OFF,
  32     COMMAND_STOP,
  33     BUTTON_2,
  34     BUTTON_3,
  35     LONG_RELEASE,
  36     LONG_PRESS,
  37     COMMAND_MOVE_TO_LEVEL_ON_OFF,
  38     COMMAND_OFF,
  39     COMMAND_MOVE,
  40 )
  41 
  42 OSRAM_CLUSTER = 0xFD00
  43 
  44 
  45 class OsramSwitchMini(CustomDevice):
  46     """Osram Smart+ Switch Mini device."""
  47 
  48     signature = {
  49         MODELS_INFO: [(OSRAM, "Lightify Switch Mini")],
  50         ENDPOINTS: {
  51             # <SimpleDescriptor endpoint=1 profile=260 device_type=2064
  52             # device_version=1
  53             # input_clusters=[0, 1, 20, 4096, 64758]
  54             # output_clusters=[3, 4, 5, 6, 8, 25, 768, 4096]>
  55             1: {
  56                 PROFILE_ID: zha.PROFILE_ID,
  57                 DEVICE_TYPE: zha.DeviceType.COLOR_SCENE_CONTROLLER,
  58                 INPUT_CLUSTERS: [
  59                     Basic.cluster_id,
  60                     PowerConfiguration.cluster_id,
  61                     PollControl.cluster_id,
  62                     LightLink.cluster_id,
  63                     OSRAM_CLUSTER,
  64                 ],
  65                 OUTPUT_CLUSTERS: [
  66                     Identify.cluster_id,
  67                     Groups.cluster_id,
  68                     Scenes.cluster_id,
  69                     OnOff.cluster_id,
  70                     LevelControl.cluster_id,
  71                     Ota.cluster_id,
  72                     Color.cluster_id,
  73                     LightLink.cluster_id,
  74                 ],
  75             },
  76             # <SimpleDescriptor endpoint=2 profile=260 device_type=2064
  77             # device_version=1
  78             # input_clusters=[0, 4096, 64768]
  79             # output_clusters=[3, 4, 5, 6, 8, 768, 4096]>
  80             2: {
  81                 PROFILE_ID: zha.PROFILE_ID,
  82                 DEVICE_TYPE: zha.DeviceType.COLOR_SCENE_CONTROLLER,
  83                 INPUT_CLUSTERS: [Basic.cluster_id, LightLink.cluster_id, OSRAM_CLUSTER],
  84                 OUTPUT_CLUSTERS: [
  85                     Identify.cluster_id,
  86                     Groups.cluster_id,
  87                     Scenes.cluster_id,
  88                     OnOff.cluster_id,
  89                     LevelControl.cluster_id,
  90                     Color.cluster_id,
  91                     LightLink.cluster_id,
  92                 ],
  93             },
  94             # <SimpleDescriptor endpoint=2 profile=260 device_type=2064
  95             # device_version=1
  96             # input_clusters=[0, 4096, 64768]
  97             # output_clusters=[3, 4, 5, 6, 8, 768, 4096]>
  98             3: {
  99                 PROFILE_ID: zha.PROFILE_ID,
  100                 DEVICE_TYPE: zha.DeviceType.COLOR_SCENE_CONTROLLER,
  101                 INPUT_CLUSTERS: [Basic.cluster_id, LightLink.cluster_id, OSRAM_CLUSTER],
  102                 OUTPUT_CLUSTERS: [
  103                     Identify.cluster_id,
  104                     Groups.cluster_id,
  105                     Scenes.cluster_id,
  106                     OnOff.cluster_id,
  107                     LevelControl.cluster_id,
  108                     Color.cluster_id,
  109                     LightLink.cluster_id,
  110                 ],
  111             },
  112         },
  113     }
  114 
  115     device_automation_triggers = {
  116         (SHORT_PRESS, BUTTON_1): {COMMAND: COMMAND_ON, ENDPOINT_ID: 1},
  117         (LONG_PRESS, BUTTON_1): {COMMAND: COMMAND_STEP_ON_OFF, ENDPOINT_ID: 1},
  118         (LONG_RELEASE, BUTTON_1): {COMMAND: COMMAND_STOP, ENDPOINT_ID: 1},
  119         (SHORT_PRESS, BUTTON_2): {
  120             COMMAND: COMMAND_MOVE_TO_LEVEL_ON_OFF,
  121             ENDPOINT_ID: 3,
  122         },
  123         (LONG_PRESS, BUTTON_2): {COMMAND: "move_to_saturation", ENDPOINT_ID: 3},
  124         (LONG_RELEASE, BUTTON_2): {COMMAND: "move_hue", ENDPOINT_ID: 3},
  125         (SHORT_PRESS, BUTTON_3): {COMMAND: COMMAND_OFF, ENDPOINT_ID: 2},
  126         (LONG_PRESS, BUTTON_3): {COMMAND: COMMAND_MOVE, ENDPOINT_ID: 2},
  127         (LONG_RELEASE, BUTTON_3): {COMMAND: COMMAND_STOP, ENDPOINT_ID: 2},
  128     }
  129
  ```
  --- END FILES ---
  
  Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.
  
  Here is an example:
  
  ```diff
  diff --git a/examples/server_async.py b/examples/server_async.py
  --- a/examples/server_async.py
  +++ b/examples/server_async.py
  @@ -313,4 +313,4 @@
   
   
   if __name__ == "__main__":
  -    asyncio.run(run_async_server("."), debug=True)
  +    asyncio.run(run_async_server(), debug=True)
  diff --git a/examples/server_sync.py b/examples/server_sync.py
  --- a/examples/server_sync.py
  +++ b/examples/server_sync.py
  @@ -313,5 +313,5 @@
   
   
   if __name__ == "__main__":
  -    server = run_sync_server(".")
  +    server = run_sync_server()
       server.shutdown()
  
  ```
  
golden_diff: diff --git a/zhaquirks/osram/switchmini.py b/zhaquirks/osram/switchmini.py
  --- a/zhaquirks/osram/switchmini.py
  +++ b/zhaquirks/osram/switchmini.py
  @@ -112,6 +112,9 @@
           },
       }
   
  +    replacement = {**signature}
  +    replacement.pop(MODELS_INFO)
  +
       device_automation_triggers = {
           (SHORT_PRESS, BUTTON_1): {COMMAND: COMMAND_ON, ENDPOINT_ID: 1},
           (LONG_PRESS, BUTTON_1): {COMMAND: COMMAND_STEP_ON_OFF, ENDPOINT_ID: 1},
  
verification_info: {"golden_diff": "diff --git a/zhaquirks/osram/switchmini.py b/zhaquirks/osram/switchmini.py\n--- a/zhaquirks/osram/switchmini.py\n+++ b/zhaquirks/osram/switchmini.py\n@@ -112,6 +112,9 @@\n         },\n     }\n \n+    replacement = {**signature}\n+    replacement.pop(MODELS_INFO)\n+\n     device_automation_triggers = {\n         (SHORT_PRESS, BUTTON_1): {COMMAND: COMMAND_ON, ENDPOINT_ID: 1},\n         (LONG_PRESS, BUTTON_1): {COMMAND: COMMAND_STEP_ON_OFF, ENDPOINT_ID: 1},\n", "issue": "[BUG] Osram switch mini\n**Describe the bug**\r\nAdding a OSRAM Lightify Switch Mini to my network is not working out after quirk was added some time ago.\r\n\r\nBefore quirk: I picked up zha_events.\r\n\r\nAfter quirk: The remote switches everything(switched bulbs cover) in my network on and off.\r\n\r\n\r\n \r\n\r\n**To Reproduce**\r\nSteps to reproduce the behavior:\r\nRemoved remote, deletes entries from zha.storage and other HA files I could find the remote.\r\n\r\nDevice signature:\r\n{\r\n  \"node_descriptor\": \"NodeDescriptor(byte1=2, byte2=64, mac_capability_flags=128, manufacturer_code=4364, maximum_buffer_size=82, maximum_incoming_transfer_size=82, server_mask=0, maximum_outgoing_transfer_size=82, descriptor_capability_field=0)\",\r\n  \"endpoints\": {},\r\n  \"manufacturer\": \"OSRAM\",\r\n  \"model\": \"Lightify Switch Mini\",\r\n  \"class\": \"zhaquirks.osram.switchmini.OsramSwitchMini\"\r\n}\r\n\r\nManage cluster is empty.\r\n![osrammini](https://user-images.githubusercontent.com/11892538/94000737-deea2f80-fd97-11ea-88a2-83301b6584a0.png)\r\n\r\n**Expected behavior**\r\nA remote that switches the stuff I want, not everything(via zha_event for my usage)\r\n\r\n**Screenshots**\r\nIf applicable, add screenshots to help explain your problem.\r\n\r\n**Additional context**\r\n[osramminiadd.txt](https://github.com/zigpy/zha-device-handlers/files/5267371/osramminiadd.txt)\r\n\n", "before_files": [{"content": "\"\"\"Osram Smart+ Switch Mini device.\"\"\"\nfrom zigpy.profiles import zha\nfrom zigpy.quirks import CustomDevice\nfrom zigpy.zcl.clusters.general import (\n    Basic,\n    Groups,\n    Identify,\n    LevelControl,\n    OnOff,\n    Ota,\n    PowerConfiguration,\n    Scenes,\n    PollControl,\n)\nfrom zigpy.zcl.clusters.lighting import Color\nfrom zigpy.zcl.clusters.lightlink import LightLink\n\nfrom . import OSRAM\nfrom ..const import (\n    DEVICE_TYPE,\n    ENDPOINTS,\n    INPUT_CLUSTERS,\n    OUTPUT_CLUSTERS,\n    PROFILE_ID,\n    SHORT_PRESS,\n    COMMAND,\n    COMMAND_ON,\n    MODELS_INFO,\n    BUTTON_1,\n    ENDPOINT_ID,\n    COMMAND_STEP_ON_OFF,\n    COMMAND_STOP,\n    BUTTON_2,\n    BUTTON_3,\n    LONG_RELEASE,\n    LONG_PRESS,\n    COMMAND_MOVE_TO_LEVEL_ON_OFF,\n    COMMAND_OFF,\n    COMMAND_MOVE,\n)\n\nOSRAM_CLUSTER = 0xFD00\n\n\nclass OsramSwitchMini(CustomDevice):\n    \"\"\"Osram Smart+ Switch Mini device.\"\"\"\n\n    signature = {\n        MODELS_INFO: [(OSRAM, \"Lightify Switch Mini\")],\n        ENDPOINTS: {\n            # <SimpleDescriptor endpoint=1 profile=260 device_type=2064\n            # device_version=1\n            # input_clusters=[0, 1, 20, 4096, 64758]\n            # output_clusters=[3, 4, 5, 6, 8, 25, 768, 4096]>\n            1: {\n                PROFILE_ID: zha.PROFILE_ID,\n                DEVICE_TYPE: zha.DeviceType.COLOR_SCENE_CONTROLLER,\n                INPUT_CLUSTERS: [\n                    Basic.cluster_id,\n                    PowerConfiguration.cluster_id,\n                    PollControl.cluster_id,\n                    LightLink.cluster_id,\n                    OSRAM_CLUSTER,\n                ],\n                OUTPUT_CLUSTERS: [\n                    Identify.cluster_id,\n                    Groups.cluster_id,\n                    Scenes.cluster_id,\n                    OnOff.cluster_id,\n                    LevelControl.cluster_id,\n                    Ota.cluster_id,\n                    Color.cluster_id,\n                    LightLink.cluster_id,\n                ],\n            },\n            # <SimpleDescriptor endpoint=2 profile=260 device_type=2064\n            # device_version=1\n            # input_clusters=[0, 4096, 64768]\n            # output_clusters=[3, 4, 5, 6, 8, 768, 4096]>\n            2: {\n                PROFILE_ID: zha.PROFILE_ID,\n                DEVICE_TYPE: zha.DeviceType.COLOR_SCENE_CONTROLLER,\n                INPUT_CLUSTERS: [Basic.cluster_id, LightLink.cluster_id, OSRAM_CLUSTER],\n                OUTPUT_CLUSTERS: [\n                    Identify.cluster_id,\n                    Groups.cluster_id,\n                    Scenes.cluster_id,\n                    OnOff.cluster_id,\n                    LevelControl.cluster_id,\n                    Color.cluster_id,\n                    LightLink.cluster_id,\n                ],\n            },\n            # <SimpleDescriptor endpoint=2 profile=260 device_type=2064\n            # device_version=1\n            # input_clusters=[0, 4096, 64768]\n            # output_clusters=[3, 4, 5, 6, 8, 768, 4096]>\n            3: {\n                PROFILE_ID: zha.PROFILE_ID,\n                DEVICE_TYPE: zha.DeviceType.COLOR_SCENE_CONTROLLER,\n                INPUT_CLUSTERS: [Basic.cluster_id, LightLink.cluster_id, OSRAM_CLUSTER],\n                OUTPUT_CLUSTERS: [\n                    Identify.cluster_id,\n                    Groups.cluster_id,\n                    Scenes.cluster_id,\n                    OnOff.cluster_id,\n                    LevelControl.cluster_id,\n                    Color.cluster_id,\n                    LightLink.cluster_id,\n                ],\n            },\n        },\n    }\n\n    device_automation_triggers = {\n        (SHORT_PRESS, BUTTON_1): {COMMAND: COMMAND_ON, ENDPOINT_ID: 1},\n        (LONG_PRESS, BUTTON_1): {COMMAND: COMMAND_STEP_ON_OFF, ENDPOINT_ID: 1},\n        (LONG_RELEASE, BUTTON_1): {COMMAND: COMMAND_STOP, ENDPOINT_ID: 1},\n        (SHORT_PRESS, BUTTON_2): {\n            COMMAND: COMMAND_MOVE_TO_LEVEL_ON_OFF,\n            ENDPOINT_ID: 3,\n        },\n        (LONG_PRESS, BUTTON_2): {COMMAND: \"move_to_saturation\", ENDPOINT_ID: 3},\n        (LONG_RELEASE, BUTTON_2): {COMMAND: \"move_hue\", ENDPOINT_ID: 3},\n        (SHORT_PRESS, BUTTON_3): {COMMAND: COMMAND_OFF, ENDPOINT_ID: 2},\n        (LONG_PRESS, BUTTON_3): {COMMAND: COMMAND_MOVE, ENDPOINT_ID: 2},\n        (LONG_RELEASE, BUTTON_3): {COMMAND: COMMAND_STOP, ENDPOINT_ID: 2},\n    }\n", "path": "zhaquirks/osram/switchmini.py"}], "after_files": [{"content": "\"\"\"Osram Smart+ Switch Mini device.\"\"\"\nfrom zigpy.profiles import zha\nfrom zigpy.quirks import CustomDevice\nfrom zigpy.zcl.clusters.general import (\n    Basic,\n    Groups,\n    Identify,\n    LevelControl,\n    OnOff,\n    Ota,\n    PowerConfiguration,\n    Scenes,\n    PollControl,\n)\nfrom zigpy.zcl.clusters.lighting import Color\nfrom zigpy.zcl.clusters.lightlink import LightLink\n\nfrom . import OSRAM\nfrom ..const import (\n    DEVICE_TYPE,\n    ENDPOINTS,\n    INPUT_CLUSTERS,\n    OUTPUT_CLUSTERS,\n    PROFILE_ID,\n    SHORT_PRESS,\n    COMMAND,\n    COMMAND_ON,\n    MODELS_INFO,\n    BUTTON_1,\n    ENDPOINT_ID,\n    COMMAND_STEP_ON_OFF,\n    COMMAND_STOP,\n    BUTTON_2,\n    BUTTON_3,\n    LONG_RELEASE,\n    LONG_PRESS,\n    COMMAND_MOVE_TO_LEVEL_ON_OFF,\n    COMMAND_OFF,\n    COMMAND_MOVE,\n)\n\nOSRAM_CLUSTER = 0xFD00\n\n\nclass OsramSwitchMini(CustomDevice):\n    \"\"\"Osram Smart+ Switch Mini device.\"\"\"\n\n    signature = {\n        MODELS_INFO: [(OSRAM, \"Lightify Switch Mini\")],\n        ENDPOINTS: {\n            # <SimpleDescriptor endpoint=1 profile=260 device_type=2064\n            # device_version=1\n            # input_clusters=[0, 1, 20, 4096, 64758]\n            # output_clusters=[3, 4, 5, 6, 8, 25, 768, 4096]>\n            1: {\n                PROFILE_ID: zha.PROFILE_ID,\n                DEVICE_TYPE: zha.DeviceType.COLOR_SCENE_CONTROLLER,\n                INPUT_CLUSTERS: [\n                    Basic.cluster_id,\n                    PowerConfiguration.cluster_id,\n                    PollControl.cluster_id,\n                    LightLink.cluster_id,\n                    OSRAM_CLUSTER,\n                ],\n                OUTPUT_CLUSTERS: [\n                    Identify.cluster_id,\n                    Groups.cluster_id,\n                    Scenes.cluster_id,\n                    OnOff.cluster_id,\n                    LevelControl.cluster_id,\n                    Ota.cluster_id,\n                    Color.cluster_id,\n                    LightLink.cluster_id,\n                ],\n            },\n            # <SimpleDescriptor endpoint=2 profile=260 device_type=2064\n            # device_version=1\n            # input_clusters=[0, 4096, 64768]\n            # output_clusters=[3, 4, 5, 6, 8, 768, 4096]>\n            2: {\n                PROFILE_ID: zha.PROFILE_ID,\n                DEVICE_TYPE: zha.DeviceType.COLOR_SCENE_CONTROLLER,\n                INPUT_CLUSTERS: [Basic.cluster_id, LightLink.cluster_id, OSRAM_CLUSTER],\n                OUTPUT_CLUSTERS: [\n                    Identify.cluster_id,\n                    Groups.cluster_id,\n                    Scenes.cluster_id,\n                    OnOff.cluster_id,\n                    LevelControl.cluster_id,\n                    Color.cluster_id,\n                    LightLink.cluster_id,\n                ],\n            },\n            # <SimpleDescriptor endpoint=2 profile=260 device_type=2064\n            # device_version=1\n            # input_clusters=[0, 4096, 64768]\n            # output_clusters=[3, 4, 5, 6, 8, 768, 4096]>\n            3: {\n                PROFILE_ID: zha.PROFILE_ID,\n                DEVICE_TYPE: zha.DeviceType.COLOR_SCENE_CONTROLLER,\n                INPUT_CLUSTERS: [Basic.cluster_id, LightLink.cluster_id, OSRAM_CLUSTER],\n                OUTPUT_CLUSTERS: [\n                    Identify.cluster_id,\n                    Groups.cluster_id,\n                    Scenes.cluster_id,\n                    OnOff.cluster_id,\n                    LevelControl.cluster_id,\n                    Color.cluster_id,\n                    LightLink.cluster_id,\n                ],\n            },\n        },\n    }\n\n    replacement = {**signature}\n    replacement.pop(MODELS_INFO)\n\n    device_automation_triggers = {\n        (SHORT_PRESS, BUTTON_1): {COMMAND: COMMAND_ON, ENDPOINT_ID: 1},\n        (LONG_PRESS, BUTTON_1): {COMMAND: COMMAND_STEP_ON_OFF, ENDPOINT_ID: 1},\n        (LONG_RELEASE, BUTTON_1): {COMMAND: COMMAND_STOP, ENDPOINT_ID: 1},\n        (SHORT_PRESS, BUTTON_2): {\n            COMMAND: COMMAND_MOVE_TO_LEVEL_ON_OFF,\n            ENDPOINT_ID: 3,\n        },\n        (LONG_PRESS, BUTTON_2): {COMMAND: \"move_to_saturation\", ENDPOINT_ID: 3},\n        (LONG_RELEASE, BUTTON_2): {COMMAND: \"move_hue\", ENDPOINT_ID: 3},\n        (SHORT_PRESS, BUTTON_3): {COMMAND: COMMAND_OFF, ENDPOINT_ID: 2},\n        (LONG_PRESS, BUTTON_3): {COMMAND: COMMAND_MOVE, ENDPOINT_ID: 2},\n        (LONG_RELEASE, BUTTON_3): {COMMAND: COMMAND_STOP, ENDPOINT_ID: 2},\n    }\n", "path": "zhaquirks/osram/switchmini.py"}]}