Using deep learning methods to detect potential safety hazards in transmission lines is the mainstream method for power grid security monitoring. However, the existing model is too complex to adapt to edge device deployment and real-time detection. Therefore, an edge–real-time transmission line safety hazard detection method (ETLSH-YOLO) was proposed to reduce the model’s complexity and improve the model’s robustness. Firstly, a re-parameterized Ghost efficient layer aggregation network (RepGhostCSPELAN) was designed to effectively fuse the feature information of different layers while enhancing the model’s expression ability and reducing the number of model parameters and floating-point operations. Then, a spatial channel decoupled downsampling block (CSDovn) was designed to reduce computational redundancy and improve the computational efficiency of the model. Then, coordinate attention (CA) was added in the process of multi-scale feature fusion to suppress the interference of complex background and improve the global perception ability of the model object. Finally, the Mish activation function was used to improve the network’s training speed, convergence, and generalization ability. The experimental results show that the mAP50 of this model improved by 1.73% compared with the baseline model, and the number of parameters and floating-point operations were reduced by 33.96% and 22.22%, respectively. This model lays the foundation for solving the dilemma of edge device deployment.