There is no requirement to give notice where the local authority considers that the premises needs to be entered for the purposes of finding out whether an offence has been committed. For example to see if an HMO is operating without a licence or to see if a licence condition has been breached.
If entry is refused, the local authority can apply to the Court for a warrant authorising entry, by force if necessary.