I have a proprietary lighting gateway that speaks over Telnet and a lightweight REST API. My goal is to control and monitor every light it manages directly from Home Assistant through a clean, version-compliant custom integration written in Python. Here is what I need from you: • A Home Assistant custom component that opens the Telnet session (and optionally falls back to the REST endpoints) to discover, add, and keep each light entity in sync, exposing on/off, brightness, and status attributes. • Support for re-authentication, disconnection handling, and standard config-flow onboarding so I can add the gateway from the UI without touching yaml. • Entity updates should be event-driven when possible; otherwise, poll efficiently without blocking the main loop. • Clear, step-by-step instructions (or a short README) so I can install, test, and maintain the integration myself. If you have previous experience with custom components, Telnet scripting, or REST-based integrations inside Home Assistant, this should be straightforward. I’ll be available to provide gateway documentation, test credentials, and real-time feedback throughout the build.